All blocks
[26] App
Billing
The current plan with usage bars, the payment method, and a table of invoices with downloads.
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.
billing.tsx
import { Badge, Button, Card, Col, Container, IconButton, Link, PageTitle, Progress, Row, Section, Table, Tbody, Td, Text, Th, Thead, Title, Tr } from "@vaneui/ui";
const usage = [ { label: "Seats", used: 8, total: 10, text: "8 of 10" }, { label: "File storage", used: 42, total: 100, text: "42 of 100 GB" }, { label: "Automation runs", used: 7200, total: 10000, text: "7,200 of 10,000" },];const invoices = [ { id: "INV-2026-012", date: "Dec 1, 2026", amount: "$320.00", status: "Paid" }, { id: "INV-2026-011", date: "Nov 1, 2026", amount: "$320.00", status: "Paid" }, { id: "INV-2026-010", date: "Oct 1, 2026", amount: "$256.00", status: "Refunded" }, { id: "INV-2026-009", date: "Sep 1, 2026", amount: "$256.00", status: "Paid" },];
function CardIcon() { return ( <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true"> <rect x="2" y="5" width="20" height="14" rx="2" /><path d="M2 10h20M6 15h4" /> </svg> );}
function DownloadIcon() { return ( <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true"> <path d="M12 4v11M7 10l5 5 5-5M5 20h14" /> </svg> );}
export function Billing() { return ( <Section> <Container itemsStretch> <Col lg> <Col xs> <PageTitle>Billing</PageTitle> <Text secondary>Your plan, what you use and the invoices for this workspace.</Text> </Col> <Row tabletStack itemsStretch> <Card flex1 className="min-w-0"> <Row justifyBetween itemsStart flexWrap> <Col xs> <Row sm> <Title tag="h2">Team plan</Title> <Badge>Yearly</Badge> </Row> <Text secondary>$32 per member a month, renews on Jan 1, 2027.</Text> </Col> <Button href="/billing/plans" filled>Change plan</Button> </Row> <Col> {usage.map((u) => ( <Col key={u.label} xs> <Row justifyBetween> <Text sm>{u.label}</Text> <Text sm secondary className="tabular-nums">{u.text}</Text> </Row> <Progress value={u.used} max={u.total} aria-label={`${u.label}: ${u.text}`} /> </Col> ))} </Col> </Card> <Card tabletWFull className="w-80"> <Title tag="h2">Payment method</Title> <Row> <Card sm secondary noShrink aria-hidden="true"><CardIcon /></Card> <Col noGap> <Text sm fontMedium>Visa ending in 4242</Text> <Text xs tertiary>Expires 08/2028</Text> </Col> </Row> <Text sm secondary>Invoices go to billing@acme.com. <Link href="/billing/contact">Change</Link></Text> <Button href="/billing/payment">Update card</Button> </Card> </Row> <Col sm> <Title tag="h2">Invoices</Title> <Card noPadding overflowXAuto> <Table> <Thead> <Tr> <Th scope="col">Invoice</Th> <Th scope="col">Date</Th> <Th scope="col" textRight>Amount</Th> <Th scope="col" className="max-mobile:hidden">Status</Th> <Th scope="col"><Text tag="span" srOnly>Download</Text></Th> </Tr> </Thead> <Tbody> {invoices.map((inv) => ( <Tr key={inv.id}> <Td className="whitespace-nowrap align-middle">{inv.id}</Td> <Td className="whitespace-nowrap align-middle">{inv.date}</Td> <Td textRight className="tabular-nums align-middle">{inv.amount}</Td> <Td className="max-mobile:hidden align-middle"> <Badge success={inv.status === "Paid"}>{inv.status}</Badge> </Td> <Td textRight className="align-middle"> <IconButton href={`/billing/invoices/${inv.id}.pdf`} ghost secondary aria-label={`Download ${inv.id}`}><DownloadIcon /></IconButton> </Td> </Tr> ))} </Tbody> </Table> </Card> </Col> </Col> </Container> </Section> );}Components in this block
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.