Input

A text input field. Supports leading icons, trailing elements, and specialized variants like PasswordInput, EmailInput, and SearchInput.

Installation

Props

Extends all standard HTMLInputElement props.

PropTypeDefaultDescription
type
string"text"HTML input type. Certain types (password, email, search) auto-add icons and behaviors.
icon
React.ReactNodeCustom leading icon. Overrides the auto-detected icon.
trailing
React.ReactNodeTrailing element shown on the right side of the input.
placeholder
stringPlaceholder text.
disabled
booleanfalseDisables the input.
className
stringAdditional classes merged via cn().