OTP

A One-Time Password (OTP) input component that provides a user-friendly way to enter verification codes. It supports both numeric and alphanumeric inputs, with features like paste support and redacted display.

-

Output:

Props

NameDefaultType
modebothnum char both
Type of input allowed: numbers only, characters only, or both
redactedfalseboolean
Whether to show asterisks instead of the actual input

Events

NamePayloadType
changestringEmitted when the OTP value changes
completestringEmitted when all OTP fields are filled