Forms
Input OTP
One-time password input with segmented fields.
Sourceinput-otp.tsx
Input OTP
Segmented one-time password input.
-
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
maxLength | number | -- | Number of OTP slots. |
value | string | -- | Controlled value. |
onChange | (value: string) => void | -- | Called on value change. |
Usage
import { InputOTP } from "@doss/tetris-ui";