Sign up form
An account creation flow with field validation, password strength, and a clear completion state.
A six digit verification flow with paste support and keyboard navigation.
npx shadcn@latest add @silicon-ui/otp-inputnpx shadcn@latest add @silicon-ui/otp-inputInstall the dependencies.
npm install motionCopy these files into your project. Shared files are skipped if you already have them.
components/silicon-ui/otp-input/otp-input.tsxcomponents/silicon-ui/otp-input/otp-input.module.cssInstall the foundation once per app for the design and motion tokens: npx shadcn@latest add @silicon-ui/silicon-foundation
| Prop | Type | Default |
|---|---|---|
label* | string | — |
length | number | 6 |
value | string | "" |
onChange | (value: string) => void | — |
description | string | — |
error | string | — |
autoFocus | boolean | false |
disabled | boolean | false |
inputMode | "numeric" | "text" | "numeric" |
className | string | — |