Skip to content
All blocks

[20] Auth

Onboarding Checklist

A progress bar over five setup tasks with checkboxes and links, and a button that dismisses the card.

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 onClick handler, so in the Next.js App Router add "use client" at the top of its file.

onboarding-checklist.tsx

import { useState } from "react";
import { Card, Checkbox, Col, Container, IconButton, Label, Link, Progress, Row, Section, Text, Title } from "@vaneui/ui";
const tasks = [
{ id: "profile", label: "Add your name and photo", action: "Edit profile", href: "/settings/profile" },
{ id: "project", label: "Create your first project", action: "New project", href: "/projects/new" },
{ id: "invite", label: "Invite your team", action: "Invite", href: "/team" },
{ id: "connect", label: "Connect GitHub or Slack", action: "Connect", href: "/integrations" },
{ id: "mobile", label: "Install the mobile app", action: "Get the app", href: "/apps" },
];
function CloseIcon() {
return (
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" aria-hidden="true">
<path d="M6 6l12 12M18 6 6 18" />
</svg>
);
}
export function OnboardingChecklist() {
const [done, setDone] = useState<string[]>(["profile", "project"]);
const [dismissed, setDismissed] = useState(false);
if (dismissed) return null;
const toggle = (id: string) => setDone((d) => (d.includes(id) ? d.filter((x) => x !== id) : [...d, id]));
return (
<Section>
<Container>
<Card wFull className="max-w-xl">
<Row justifyBetween itemsStart>
<Col xs>
<Title tag="h2">Get started with Acme</Title>
<Text secondary>{done.length} of {tasks.length} done. Finish setup to get the most out of your trial.</Text>
</Col>
<IconButton ghost secondary aria-label="Dismiss the checklist" onClick={() => setDismissed(true)}><CloseIcon /></IconButton>
</Row>
<Progress value={done.length} max={tasks.length} aria-label="Setup progress" />
<Col noGap>
{tasks.map((t) => {
const isDone = done.includes(t.id);
return (
<Row key={t.id} justifyBetween borderT paddingY>
<Label row>
<Checkbox checked={isDone} onChange={() => toggle(t.id)} />
<Text tag="span" sm secondary={isDone} lineThrough={isDone}>{t.label}</Text>
</Label>
{!isDone && <Link href={t.href} sm whitespaceNowrap>{t.action}</Link>}
</Row>
);
})}
</Col>
</Card>
</Container>
</Section>
);
}

How it adapts

  • Every width: one card, at most 576px wide.
  • Checking a task crosses it out, hides its link and moves the progress bar.
  • The link of a long task stays on one line while the task text wraps.

How these props work is in responsive page sections without breakpoint classes.

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.