InputOtp API
API documentation for InputOtp component
InputOtpRoot#
Props#
Defines valid properties in InputOtp component.
State#
Defines valid state in InputOtp component.
Exposes#
Defines the methods and properties exposed by InputOtp component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of InputOtp component.
Types#
Instance
Instance of InputOtp component.
| values |
|---|
| ComponentInstance<InputOtpRootProps, InputOtpRootState, InputOtpRootExposes> |
InputOtpText#
Props#
Defines valid properties in InputOtpText component.
Exposes#
Defines the methods and properties exposed by InputOtpText component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of InputOtpText component.
| name | type | default | description |
|---|---|---|---|
| root | InputOtpTextPassThroughType<HTMLAttributes<HTMLButtonElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of InputOtpText component.
| values |
|---|
| ComponentInstance<InputOtpTextProps, InputOtpTextState, InputOtpTextExposes> |
useInputOtp#
Props#
Defines valid properties in useInputOtp.
State#
Defines valid state in useInputOtp.
Exposes#
Defines the methods and properties exposed by useInputOtp.
Events#
useInputOtpValueChangeEvent
Custom value change event.
| name | type | description |
|---|---|---|
| originalEvent | SyntheticEvent<HTMLInputElement> | Original browser event. |
| value | string | New value. |
Types#
Instance
Instance of useInputOtp headless.
| values |
|---|
| HeadlessInstance<useInputOtpProps, useInputOtpState, useInputOtpExposes> |