All blocks
[23] App
Page Header
A breadcrumb, the page title with a status, a meta line, buttons with an overflow menu, and a row of tabs.
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.
page-header.tsx
import type { ReactNode } from "react";import { Badge, Breadcrumb, BreadcrumbItem, Button, Col, Container, Divider, IconButton, Menu, MenuItem, NavLink, PageTitle, Row, Section, Text } from "@vaneui/ui";
function Svg({ children }: { children: ReactNode }) { return ( <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true"> {children} </svg> );}
const meta = [ { label: "Due Dec 18", icon: <Svg><rect x="3" y="5" width="18" height="16" rx="2" /><path d="M3 10h18M8 3v4M16 3v4" /></Svg> }, { label: "Owned by Ana Diaz", icon: <Svg><circle cx="12" cy="8" r="4" /><path d="M4 21a8 8 0 0 1 16 0" /></Svg> }, { label: "4 files", icon: <Svg><path d="m21 12-8.5 8.5a5 5 0 0 1-7-7L14 5a3.5 3.5 0 0 1 5 5l-8.5 8.5a2 2 0 0 1-3-3L15 8" /></Svg> },];const tabs = [ { href: "/projects/website/launch", label: "Overview" }, { href: "/projects/website/launch/tasks", label: "Tasks" }, { href: "/projects/website/launch/files", label: "Files" }, { href: "/projects/website/launch/activity", label: "Activity" },];
export function PageHeader({ current = "/projects/website/launch" }: { current?: string }) { return ( <Section> <Container itemsStretch> <Col lg> <Col> <Breadcrumb> <BreadcrumbItem href="/projects">Projects</BreadcrumbItem> <BreadcrumbItem href="/projects/website">Website relaunch</BreadcrumbItem> <BreadcrumbItem>Launch checklist</BreadcrumbItem> </Breadcrumb> <Row justifyBetween itemsStart flexWrap> <Col sm className="min-w-0"> <Row sm flexWrap> <PageTitle>Launch checklist</PageTitle> <Badge success dot>On track</Badge> </Row> <Row flexWrap> {meta.map((m) => <Text key={m.label} sm secondary>{m.icon} {m.label}</Text>)} </Row> </Col> <Row sm> <Button>Share</Button> <Button filled>Edit</Button> <Menu trigger={<IconButton aria-label="More actions"><Svg><circle cx="5" cy="12" r="1" /><circle cx="12" cy="12" r="1" /><circle cx="19" cy="12" r="1" /></Svg></IconButton>}> <MenuItem>Duplicate</MenuItem> <MenuItem>Move to another project</MenuItem> <MenuItem>Archive</MenuItem> <Divider /> <MenuItem danger>Delete</MenuItem> </Menu> </Row> </Row> </Col> <Row tag="nav" aria-label="Checklist sections" noGap borderB overflowXAuto> {tabs.map((t) => ( <NavLink key={t.href} href={t.href} active={t.href === current} indicatorBottom ghost sharp wFit>{t.label}</NavLink> ))} </Row> </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.