UseOtpInputOptions
Properties
Section titled “Properties”aria-describedby?
Section titled “aria-describedby?”optional aria-describedby?: string;aria-label?
Section titled “aria-label?”optional aria-label?: string;autoComplete?
Section titled “autoComplete?”optional autoComplete?: string;autoFocus?
Section titled “autoFocus?”optional autoFocus?: boolean;blurOnComplete?
Section titled “blurOnComplete?”optional blurOnComplete?: boolean;defaultValue?
Section titled “defaultValue?”optional defaultValue?: string;optional dir?: "ltr" | "rtl";disabled?
Section titled “disabled?”optional disabled?: boolean;optional id?: string;inputRef?
Section titled “inputRef?”optional inputRef?: Ref<HTMLInputElement>;invalid?
Section titled “invalid?”optional invalid?: boolean;label?
Section titled “label?”optional label?: string;length?
Section titled “length?”optional length?: number;optional mask?: string | boolean;optional mode?: OtpMode;optional name?: string;onBlur?
Section titled “onBlur?”optional onBlur?: (event) => void;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
event | FocusEvent<HTMLInputElement> |
Returns
Section titled “Returns”void
onChange?
Section titled “onChange?”optional onChange?: (value) => void;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
value | string |
Returns
Section titled “Returns”void
onComplete?
Section titled “onComplete?”optional onComplete?: (value) => void;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
value | string |
Returns
Section titled “Returns”void
pasteTransform?
Section titled “pasteTransform?”optional pasteTransform?: (pasted) => string;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
pasted | string |
Returns
Section titled “Returns”string
pattern?
Section titled “pattern?”optional pattern?: string | RegExp;placeholder?
Section titled “placeholder?”optional placeholder?: string;readOnly?
Section titled “readOnly?”optional readOnly?: boolean;required?
Section titled “required?”optional required?: boolean;transform?
Section titled “transform?”optional transform?: (value) => string;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
value | string |
Returns
Section titled “Returns”string
value?
Section titled “value?”optional value?: string;