# Input
Single-line text input with default and error variants.

## Import/Installation

<Tabs items={[{ label: 'Package', value: 'package' }, { label: 'Registry', value: 'registry' }]}>
  <TabsContent value="package">
    ```tsx
    import { Input } from "@lottiefiles/creator-plugins-ui";
    ```
  </TabsContent>

  <TabsContent value="registry">
    ```bash
    npx shadcn@latest add @lottiefiles/input
    ```
  </TabsContent>
</Tabs>

## Preview

<iframe src="https://creator-plugins-ds.lottiefiles.com/?story=input--all-variants&mode=preview" style={{ width: "100%", border: "1px solid rgba(128, 128, 128, 0.4)", borderRadius: "8px" }} height="344" title="Input component live preview" frameBorder="no" loading="lazy" />

## Usage

```tsx
<Input placeholder="Plugin name" />
<Input variant="error" placeholder="Invalid value" />
```

## Props

<PropsTable
  props={[
  {
    name: "variant",
    type: '"default" | "error"',
    default: '"default"',
    description: "Visual style variant.",
  },
]}
/>

Built on [Base UI Field](https://base-ui.com/react/components/field). See their docs for primitive-level details.
