All blocks
[03] Auth
Sign-In
One narrow card centered in the window, with the email and password form in one column.
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-in.tsx
import { Button, Card, Col, Field, Link, Row, Section, Text, Title } from "@vaneui/ui";
export function SignIn() { 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">Sign in</Title> </Col> <Field type="email" label="Email" name="email" autoComplete="email" required /> <Field type="password" label="Password" name="password" autoComplete="current-password" required /> <Button type="submit" filled md wFull>Sign in</Button> <Row justifyBetween flexWrap> <Link href="/forgot-password">Forgot password?</Link> <Link href="/signup">Create an account</Link> </Row> </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.