Input
A text input field for capturing user input.
Preview
Installation
bash
npx auralix-ui add inputUsage
Default Input
tsx
import { Input } from "@/components/ui/Input";
<Input placeholder="Enter your text..." />Input Sizes
tsx
<Input inputSize="sm" placeholder="Small" />
<Input inputSize="md" placeholder="Medium" />
<Input inputSize="lg" placeholder="Large" />Error State
tsx
<Input error placeholder="Invalid input" />Props
| Name | Type | Default | Description |
|---|---|---|---|
inputSize | "sm" | "md" | "lg" | "md" | The size of the input. |
error | boolean | false | Whether the input has an error state. |
disabled | boolean | false | Whether the input is disabled. |
placeholder | string | - | Placeholder text. |
Variants
Box (Default)
Line
Floating
On this page