OTP Input

Buttons

An accessible OTP/PIN input component with auto-focus, paste support, keyboard navigation, and animated focus states.

Loading preview...
Customize
Length:
Disabled

Props

PropTypeDefaultDescription
length4 | 5 | 66Number of OTP digits.
valuestring''Current OTP value.
onChange(value: string) => voidundefinedCallback when the OTP value changes.
disabledbooleanfalseDisables the OTP input.
classNamestring''Additional CSS classes.