Skip to content

    Browse components

    Signup Form

    A sign-up card with a live, animated password-strength meter and rule checklist, terms consent, inline validation and a celebratory success state.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/signup-form

    First time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/signup-form.json

    Usage

    import { SignupForm } from "@/components/ui/signup-form";
    
    <SignupForm
      minStrength={3}
      onSubmit={async (values) => {
        const res = await createAccount(values);
        if (!res.ok) throw new Error("That email is already registered.");
      }}
    />

    Props

    PropTypeDefaultDescription
    titlestring"Create your account"Card heading.
    descriptionstring"Start your 14-day trial. No credit card needed."Text under the heading.
    submitLabelstring"Create account"Submit button label.
    minStrengthnumber2Strength (1 weak .. 4 strong) the password must reach.
    showRulesbooleantrueShow the password rule checklist.
    termsReactNode—Terms checkbox label (links allowed).
    onSubmitReactNode—`({ name, email, password }) => void | Promise<void>`. Throw an Error to show a form error.
    footerReactNode—Content under the form, e.g. a sign-in link.
    classNamestring—Extra classes for the root element.