All blocks
[19] Auth
Sign-Up
GitHub and SSO buttons, a divider, then the work email form, in one narrow card centered in the window.
1280px
Copy the code
One file with one component and its sample data. It needs @vaneui/ui and its stylesheet, set up as in the installation guide. It passes an onSubmit handler, so in the Next.js App Router add "use client" at the top of its file.
sign-up.tsx
import { Button, Card, Col, Divider, Field, Link, Row, Section, Text, Title } from "@vaneui/ui";
function GithubIcon() { return ( <svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"> <path d="M12 .5C5.65.5.5 5.65.5 12a11.5 11.5 0 0 0 7.86 10.92c.58.1.79-.25.79-.56v-2c-3.2.7-3.88-1.37-3.88-1.37-.52-1.33-1.28-1.69-1.28-1.69-1.05-.72.08-.7.08-.7 1.16.08 1.77 1.19 1.77 1.19 1.03 1.77 2.7 1.26 3.36.96.1-.75.4-1.26.73-1.55-2.55-.29-5.24-1.28-5.24-5.69 0-1.26.45-2.29 1.19-3.1-.12-.29-.52-1.46.11-3.05 0 0 .97-.31 3.17 1.18a11 11 0 0 1 5.77 0c2.2-1.49 3.17-1.18 3.17-1.18.63 1.59.23 2.76.11 3.05.74.81 1.19 1.84 1.19 3.1 0 4.42-2.69 5.39-5.25 5.68.41.36.78 1.06.78 2.14v3.17c0 .31.21.67.8.56A11.5 11.5 0 0 0 23.5 12C23.5 5.65 18.35.5 12 .5Z" /> </svg> );}
function KeyIcon() { return ( <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true"> <circle cx="8" cy="15" r="4" /><path d="m10.8 12.2 8.2-8.2M17 6l2 2M15 8l2 2" /> </svg> );}
export function SignUp() { return ( <Section itemsCenter justifyCenter className="min-h-dvh"> <Card tag="form" onSubmit={(e) => e.preventDefault()} wFull className="max-w-sm"> <Col> <Col xs> <Text fontSemibold>Acme</Text> <Title tag="h1">Create your account</Title> <Text secondary>Start free. Invite your team later.</Text> </Col> <Col sm> <Button type="button" md wFull><GithubIcon /> Continue with GitHub</Button> <Button type="button" md wFull><KeyIcon /> Continue with SSO</Button> </Col> <Row sm> <Divider /> <Text xs tertiary>or</Text> <Divider /> </Row> <Field md type="email" label="Work email" name="email" autoComplete="email" required /> <Button type="submit" filled md wFull>Continue with email</Button> <Text xs tertiary> By continuing you agree to the <Link href="/terms">Terms</Link> and the <Link href="/privacy">Privacy Policy</Link>. </Text> </Col> </Card> </Section> );}Adapt it with your coding agent
Add the VaneUI MCP server, and your agent reads the component docs and prop tables while it changes the block: the copy, the sample data or the layout.
$ claude mcp add vaneui -- npx -y @vaneui/mcp
Setup for other editors is in the AI assistants guide.