Otp Code Input
A production-scale, light + dark Otp Code Input component. Copy-paste via the CLI; you own the code.
npx lerpa-cli add otp-code-inputLive preview available in the gallery.
Usage
import { OTPCodeInput } from "@lerpa/ui";
<OTPCodeInput />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| length | number | — | |
| accent | string | — | |
| onComplete | (code: string) => void | — | |
| label | string | — |
Accessibility
- Keyboard accessible interactive elements.
- Respects prefers-reduced-motion where animated.
- Color is never the only signal.