Signup Form
A simple signup form.
Card
Input
Label
Button
Preview
Create an account
Enter your information below to create your account
We'll use this to contact you. We will not share your email with anyone else.
Must be at least 8 characters long.
Please confirm your password.
Already have an account?
Sign in
Code
<BbCard class="w-full max-w-sm">
<BbCardHeader>
<BbCardTitle class="text-2xl">Create an account</BbCardTitle>
<BbCardDescription>Enter your information below to create your account</BbCardDescription>
</BbCardHeader>
<BbCardContent>
<div class="space-y-4">
<div class="space-y-2">
<BbLabel For="name">Full Name</BbLabel>
<BbInput Id="name" Placeholder="John Doe" />
</div>
<div class="space-y-2">
<BbLabel For="email">Email</BbLabel>
<BbInput Id="email" Type="InputType.Email" Placeholder="[email protected]" />
<p class="text-xs text-muted-foreground">
We'll use this to contact you. We will not share your email with anyone else.
</p>
</div>
<div class="space-y-2">
<BbLabel For="password">Password</BbLabel>
<BbInput Id="password" Type="InputType.Password" />
<p class="text-xs text-muted-foreground">Must be at least 8 characters long.</p>
</div>
<div class="space-y-2">
<BbLabel For="confirm-password">Confirm Password</BbLabel>
<BbInput Id="confirm-password" Type="InputType.Password" />
<p class="text-xs text-muted-foreground">Please confirm your password.</p>
</div>
<BbButton Class="w-full">Create Account</BbButton>
<BbButton Variant="ButtonVariant.Outline" Class="w-full">
<!-- Google icon SVG -->
Sign up with Google
</BbButton>
</div>
</BbCardContent>
<BbCardFooter>
<div class="w-full text-center text-sm text-muted-foreground">
Already have an account?
<a href="#" class="text-primary underline-offset-4 hover:underline">Sign in</a>
</div>
</BbCardFooter>
</BbCard>