InputProps
Props of Input
Extends
VariantProps<typeofinputVariants>
Properties
children?
optionalchildren:ReactNode
React children rendered inside the input container.
className?
optionalclassName:string
Additional CSS class for custom styling.
disableFocus?
optionaldisableFocus:boolean
Disables focusing behavior.
inputId?
optionalinputId:string
Unique identifier for the input element.
label?
optionallabel:string
Label text displayed above or next to the input.
onBlur()?
optionalonBlur: (v,r) =>void
Event handler called when the input loses focus.
Parameters
v
string
r
FocusEventType
Returns
void
onChange()?
optionalonChange: (v) =>void
Event handler called when the input value changes.
Parameters
v
string
Returns
void
onClear?
optionalonClear:VoidFuncNoParam
Event handler called when the clear icon is clicked.
showClearIcon?
optionalshowClearIcon:boolean
Whether to display the clear icon when the input is not empty.
skipAnimationOnce?
optionalskipAnimationOnce:boolean
Disables input animation for the first render.
value
value:
string
The current value of the input.