Skip to content
↑↓ to navigate↵ to openesc to close

Menu

Sign Up Form

Preview

Install

Add it with your package manager, or copy the source manually.

Run it in a project set up with shadcn-vue. The source is copied to components/beui and its dependencies are added to your package.json. Read the shadcn-vue guide

bunx --bun shadcn-vue@latest add @beui-vue/signup-form

Import the shared styles once in your application.

TSUsage
import SignUpForm from '@/components/beui/blocks/SignUpForm.vue'
import '@/components/beui/styles.css'

API Reference

v-model:values?
SignUpValues

Controlled values. Omit for uncontrolled.

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

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

Default—
validate?
(values: SignUpValues) => SignUpErrors

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

Default—
status?
SignUpStatus

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

Default—
errorMessage?
string

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

Default—
title?
string | null

`null` hides the header text; only an omitted prop falls back to the default.

Defaultundefined
description?
string | null
Defaultundefined
submitLabel?
string
Default—
#footer?
slot
Default—
strengthMeter?
boolean

Show the password strength meter.

Defaulttrue
labels?
Partial<typeof signUpFormMessages>

Override any built-in string.

Default—
className?
string
Default—
classNames?
SignUpFormClassNames
Default—
@values-change?
(value: SignUpValues) => void
Default—
#title?
slot

Replaces the heading.

Default—
#description?
slot

Replaces the description below the heading.

Default—

Updated