Input
Displays a form input field or a component that looks like an input field.
Component Features
- 📏 Multiple Sizes: Supports
xs,sm,md,lg,xl,2xl,defaultsize specs. - 🖼️ Prefix & Suffix Icons: Supports prefix and suffix icons via slots.
- ❌ Clearable: Supports displaying a clear button when input has value.
- 🔒 Password Mode: Supports password visibility toggle.
- ⚠️ Error State: Supports
errorprop to display error state. - 📝 Readonly & Disabled: Supports
readonlyanddisabledprops. - 🎨 Theme Customization: Based on
BrConfigProviderfor global theming and TailwindCSS local overrides.
Basic
Disabled
Readonly
Sizes
With Icons
Clearable
Password
Error State
Theming
You can customize the appearance of the input using Tailwind CSS classes or by overriding the CSS variables in your global CSS.
CSS Variables
Tailwind Customization
You can also use class prop to add custom styles: