Sign up
BlockAn account creation form with a password strength hint and terms acceptance.
- Authentication
- 6 components
- 1 file
Loading the example…
pnpm dlx @dowel-ui/cli add signupimport { SignupBlock } from "@/components/blocks/signup"; export default function Page() { return <SignupBlock />;}<SignupBlock>
| Prop | Type | Default |
|---|---|---|
error | string | — |
loginHref | string | "/login" |
minPasswordLengthMinimum password length. Length is the requirement that actually helps. | number | 12 |
onSubmit | (values: { name: string; email: string; password: string }) => void | — |
pending | boolean | false |
className | string | — |
The strength label is text and the bar beside it is aria-hidden, so the estimate is not announced twice. autoComplete="new-password" tells password managers to offer a generated password rather than an existing one. Strength is a hint, never a gate: the form is validated on length alone.