Skip to main content

InputProps

Props of Input

Extends

Properties

children?

optional children: ReactNode

React children rendered inside the input container.


className?

optional className: string

Additional CSS class for custom styling.


disableFocus?

optional disableFocus: boolean

Disables focusing behavior.


inputId?

optional inputId: string

Unique identifier for the input element.


label?

optional label: string

Label text displayed above or next to the input.


onBlur()?

optional onBlur: (v, r) => void

Event handler called when the input loses focus.

Parameters

v

string

r

FocusEventType

Returns

void


onChange()?

optional onChange: (v) => void

Event handler called when the input value changes.

Parameters

v

string

Returns

void


onClear?

optional onClear: VoidFuncNoParam

Event handler called when the clear icon is clicked.


showClearIcon?

optional showClearIcon: boolean

Whether to display the clear icon when the input is not empty.


skipAnimationOnce?

optional skipAnimationOnce: boolean

Disables input animation for the first render.


value

value: string

The current value of the input.