A
Auralix UI

Input

A text input field for capturing user input.

Preview

Installation

bash
npx auralix-ui add input

Usage

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

NameTypeDefaultDescription
inputSize"sm" | "md" | "lg""md"The size of the input.
errorbooleanfalseWhether the input has an error state.
disabledbooleanfalseWhether the input is disabled.
placeholderstring-Placeholder text.

Variants

Box (Default)
Line
Floating