Input
Text input and textarea with validation states and Field integration.
Generated from the package's public source.
API
InputRootPropsinterface
Props
class?stringdefaultValue?string— Default value (uncontrolled).disabled?booleanid?string— Element id for label association.invalid?booleanname?string— Form field name.onBlur?EventHandler<HTMLInputElement, FocusEvent>— Native blur event handler.onFocus?EventHandler<HTMLInputElement, FocusEvent>— Native focus event handler.onInput?EventHandler<HTMLInputElement, InputEvent>— Native input event handler.onValueChange?(value: string) => void— Called when the value changes.placeholder?string— Input placeholder text.readOnly?booleanrequired?booleanstyle?string | CSSPropertiestype?"number" | "text" | "email" | "password" | "search" | "tel" | "url"— HTML input type.value?string— Current input value (controlled).
Rootcomponent
Root(props: InputRootProps): Element
Props
class?stringdefaultValue?string— Default value (uncontrolled).disabled?booleanid?string— Element id for label association.invalid?booleanname?string— Form field name.onBlur?EventHandler<HTMLInputElement, FocusEvent>— Native blur event handler.onFocus?EventHandler<HTMLInputElement, FocusEvent>— Native focus event handler.onInput?EventHandler<HTMLInputElement, InputEvent>— Native input event handler.onValueChange?(value: string) => void— Called when the value changes.placeholder?string— Input placeholder text.readOnly?booleanrequired?booleanstyle?string | CSSPropertiestype?"number" | "text" | "email" | "password" | "search" | "tel" | "url"— HTML input type.value?string— Current input value (controlled).
Textareacomponent
Textarea(props: TextareaProps): Element
Props
class?stringdefaultValue?string— Default value (uncontrolled).disabled?booleanid?string— Element id for label association.invalid?booleanname?string— Form field name.onBlur?EventHandler<HTMLTextAreaElement, FocusEvent>— Native blur event handler.onFocus?EventHandler<HTMLTextAreaElement, FocusEvent>— Native focus event handler.onInput?EventHandler<HTMLTextAreaElement, InputEvent>— Native input event handler.onValueChange?(value: string) => void— Called when the value changes.placeholder?string— Textarea placeholder text.readOnly?booleanrequired?booleanrows?number— Number of visible text rows.style?string | CSSPropertiesvalue?string— Current value (controlled).
TextareaPropsinterface
Props
class?stringdefaultValue?string— Default value (uncontrolled).disabled?booleanid?string— Element id for label association.invalid?booleanname?string— Form field name.onBlur?EventHandler<HTMLTextAreaElement, FocusEvent>— Native blur event handler.onFocus?EventHandler<HTMLTextAreaElement, FocusEvent>— Native focus event handler.onInput?EventHandler<HTMLTextAreaElement, InputEvent>— Native input event handler.onValueChange?(value: string) => void— Called when the value changes.placeholder?string— Textarea placeholder text.readOnly?booleanrequired?booleanrows?number— Number of visible text rows.style?string | CSSPropertiesvalue?string— Current value (controlled).