Sign Up Form

Preview

Create your account

Sign up with taken@example.com to see the failure state.

Already have an account?

Install

Add it with the shadcn CLI, or copy the source manually.

$ bunx --bun shadcn add @beui/signup-form

API Reference

values?
SignUpValues

Controlled values. Omit for uncontrolled.

Default—
defaultValues?
Partial<SignUpValues>
Default—
onValuesChange?
((values: SignUpValues) => void)
Default—
onSubmit?
((values: SignUpValues) => void | Promise<void>)

Called with valid values only. Return a promise to drive the button state.

Default—
validate?
((values: SignUpValues) => Partial<Record<keyof SignUpValues, string>>)

Replace the built-in rules — return a message per invalid field.

Default—
status?
"error" | "success" | "loading" | "idle"

Controlled submit state. Omit to let the form track it.

Default—
errorMessage?
string

Form-level failure message, shown above the submit button.

Default—
title?
ReactNode
DefaultCreate your account
description?
ReactNode
DefaultStart building in under a minute.
submitLabel?
string
DefaultCreate account
footer?
ReactNode
Default—
strengthMeter?
boolean

Show the password strength meter.

Defaulttrue
className?
string
Default—
classNames?
SignUpFormClassNames
Default—

Keep in mind

Some components on this site are inspired by or recreated from existing work across the web. I'm not here to take credit; just to learn, experiment, and sometimes push things a bit further. If something looks familiar and I forgot to mention you, reach out and I'll fix that right away.

Updated