Import
Usage
Props
Visual design variant. Default is “secondary”.
primary: Compact input with gray background (40px height)secondary: Floating label input with white background (56px height)third: Underlined input with bottom border (34px height)
Input type: determines keyboard type and validation on mobile devices. Default is “text”.
Placeholder text. For
design="secondary", animates as floating label on focus.Controlled input value.
Uncontrolled default value.
Error message displayed below the input in red text with fade-in animation.
Disables the input and reduces opacity.
Custom React element to display on the left side of the input (e.g., icon, prefix).
Custom CSS properties for the outer container wrapper.
Custom CSS properties for the input container.
Callback fired when input value changes.
Callback fired when input receives focus.
Callback fired when input loses focus.
Input accepts all standard HTML input attributes (name, id, autoComplete, maxLength, etc.) via
ComponentPropsWithRef<"input">.Examples
Primary Design (Compact)
Secondary Design (Floating Label)
Third Design (Underlined)
Design Variants
- primary: Compact input with soft gray background, 40px height, 6px border radius
- secondary: Modern floating label design, white background, 56px height, 12px border radius
- third: Minimalist underlined input with bottom border only, 34px height