Sign up form
An account creation flow with field validation, password strength, and a clear completion state.
npx shadcn@latest add @silicon-ui/signup-formInstallation
With the shadcn CLI
npx shadcn@latest add @silicon-ui/signup-formManually
Install the dependencies
npm install @radix-ui/react-checkbox motionCopy these files into your project
- components/silicon-ui/blocks/signup-form/signup-form.tsx
- components/silicon-ui/blocks/signup-form/signup-form.module.css
Shared with other components. Skip any you already have.
- components/silicon-ui/password-field/password-field.tsx
- components/silicon-ui/password-field/password-field.module.css
- components/silicon-ui/input/input.tsx
- components/silicon-ui/input/input.module.css
- components/silicon-ui/checkbox/checkbox.tsx
- components/silicon-ui/checkbox/checkbox.module.css
- components/silicon-ui/button/button.tsx
- components/silicon-ui/button/button.module.css
Add the foundation, once per app, for the design and motion tokens
npx shadcn@latest add @silicon-ui/silicon-foundation
Usage
API reference
| 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 | — |