Input
Text input fields for collecting user data with various formats and enhancements.
When to Use
- For single-line text entry (usernames, emails, etc.)
- For multi-line text with TextArea
- For search inputs, password fields, and OTP inputs
Import
Examples
Basic
Sizes
With Prefix/Suffix
Password
TextArea
Search
Status
With Character Count
API
InputProps
value—string— Input value (controlled)defaultValue—string— Default valueonChange—(e: ChangeEvent) => void— Change handlersize—"small" | "middle" | "large"— Input size (default:"middle")variant—"outlined" | "filled" | "borderless"— Visual variantstatus—"error" | "warning"— Validation statusprefix—ReactNode— Prefix elementsuffix—ReactNode— Suffix elementallowClear—boolean— Show clear buttonplaceholder—string— Placeholder textmaxLength—number— Maximum character countshowCount—boolean— Show character countdisabled—boolean— Disable input
Input.Password Props
Inherits all InputProps plus:
visibilityToggle—boolean— Show toggle button (default:true)
Input.TextArea Props
Inherits most InputProps plus:
rows—number— Visible rowsautoSize—boolean | { minRows, maxRows }— Auto-resize
Input.Search Props
Inherits all InputProps plus:
enterButton—boolean | ReactNode— Show search buttononSearch—(value: string) => void— Search callback