Sign in
A sign in card that morphs from email to a six digit code to your account.
An account creation flow with field validation, password strength, and a clear completion state.
npx shadcn@latest add @silicon-ui/signup-formnpx shadcn@latest add @silicon-ui/signup-formInstall the dependencies.
npm install @radix-ui/react-checkbox motionCopy these files into your project. Shared files are skipped if you already have them.
components/silicon-ui/blocks/signup-form/signup-form.tsxcomponents/silicon-ui/blocks/signup-form/signup-form.module.csscomponents/silicon-ui/password-field/password-field.tsx sharedcomponents/silicon-ui/password-field/password-field.module.css sharedcomponents/silicon-ui/input/input.tsx sharedcomponents/silicon-ui/input/input.module.css sharedcomponents/silicon-ui/checkbox/checkbox.tsx sharedcomponents/silicon-ui/checkbox/checkbox.module.css sharedcomponents/silicon-ui/button/button.tsx sharedcomponents/silicon-ui/button/button.module.css sharedInstall the foundation once per app for the design and motion tokens: npx shadcn@latest add @silicon-ui/silicon-foundation
| Prop | Type | Default |
|---|---|---|
onSubmitReceives the details once every field is valid. Throw to show a submit error. | (details: SignupDetails) => void | Promise<void> | — |
serverErrorAn error from your API, shown above the submit button. | string | null | — |
onProviderCalled when someone picks a single sign-on provider. The preview simulates the redirect. | (provider: Provider) => void | — |