shadcn.io is not affiliated with official shadcn/ui
Dialog examples · Standard
Signup Form Dialog for React
A sign-up dialog with name, email and password fields, a Google option and a link to sign in instead.
Signing up shouldn't feel like filling in a tax form. This React dialog asks for a name, email and password, offers Continue with Google, and links to sign in. It's shadcn.io's Dialog on Base UI with Input and Field parts and a FieldSeparator.
Preview
Installation
FAQ
How do I validate the fields?
On blur and on submit: a valid email, a password of at least eight characters, a name. Show each error in a FieldError and keep Create Account disabled until everything passes.
Should I show password strength?
It helps people pick a good one: a short meter under the field, with the hint in a FieldDescription.
How does Continue with Google work?
It starts your provider's OAuth flow; the button only needs the redirect. The Google mark is a monochrome icon marked data-icon="inline-start".
Will browsers suggest a password?
Yes. The password input sets autoComplete="new-password", which tells browsers and password managers to offer a strong one.
Related
- Standard DialogA share dialog with a read-only link, a
- Newsletter DialogA newsletter dialog with one email field
- Input with LabelA text input with a label above it
- Button with Text (Standard)The one filled action
- Signin Form DialogA sign-in dialog with email and password
- Card Details DialogA payment card dialog with cardholder