North field depot
Open until 18:00.
Twelve kits ready for collection.
Molecules · Card
A surface that groups related content. It gets the crosshair corners, the visual mark this system uses for a frame around several things. It never gets the cut corner, because cards hold buttons.
This page as Markdown, a plain-text copy for a coding agent (an AI tool that writes code).
Open until 18:00.
function Depot({ title = 'North field depot' }: { title?: string }) { return ( <Card> <CardHeader> <CardTitle>{title}</CardTitle> <CardDescription>Open until 18:00.</CardDescription> </CardHeader> <CardBody>Twelve kits ready for collection.</CardBody> <CardFooter> <Button size="sm" variant="ghost"> Details </Button> <Button size="sm">Collect</Button> </CardFooter> </Card> )}<div className="max-w-sm w-full"> <Depot /></div>
Open until 18:00.
<div className="max-w-sm w-full"> <Card> <CardMedia src="/media/hero-poster-960.webp" aspect="16/9" /> <CardHeader className="pt-5"> <CardTitle>Range hall depot</CardTitle> <CardDescription>Open until 18:00.</CardDescription> </CardHeader> <CardBody>Twelve kits ready for collection.</CardBody> </Card></div>Open until 18:00.
Open until 20:00.
Closed today.
function Depot({ title = 'North field depot' }: { title?: string }) { return ( <Card> <CardHeader> <CardTitle>{title}</CardTitle> <CardDescription>Open until 18:00.</CardDescription> </CardHeader> <CardBody>Twelve kits ready for collection.</CardBody> <CardFooter> <Button size="sm" variant="ghost"> Details </Button> <Button size="sm">Collect</Button> </CardFooter> </Card> )}<div className="grid grid-cols-1 sm:grid-cols-3 gap-4 w-full"> <Depot title="West site depot" /> <Card> <CardHeader> <CardTitle>South gate depot</CardTitle> <CardDescription>Open until 20:00.</CardDescription> </CardHeader> <CardBody>Four kits ready for collection, three on order.</CardBody> <CardFooter> <Button size="sm" variant="ghost"> Details </Button> <Button size="sm">Collect</Button> </CardFooter> </Card> <Card> <CardHeader> <CardTitle>Harbour depot</CardTitle> <CardDescription>Closed today.</CardDescription> </CardHeader> <CardBody>Nothing ready. Next opening tomorrow, 08:00.</CardBody> <CardFooter> <Button size="sm" variant="secondary"> Notify me </Button> </CardFooter> </Card></div>Open until 17:00.
<div className="max-w-sm w-full"> <Card> <CardHeader> <CardTitle>Marsh depot</CardTitle> <CardDescription>Open until 17:00.</CardDescription> </CardHeader> <CardBody> Twelve kits ready for collection. Bring your booking number. <CardActions> <Button size="sm">Collect</Button> <Button size="sm" variant="secondary"> Details </Button> </CardActions> </CardBody> </Card></div>Open until 18:00. Twelve kits ready.
Open until 20:00. Four kits ready.
Closed today. Opens tomorrow, 08:00.
function DepotLink({ title, note, href }: { title: string; note: string; href: string }) { return ( <Card interactive className="h-full"> <CardBody className="flex flex-col gap-1"> <CardTitle> <a href={href} className={cardLinkClass}> {title} </a> </CardTitle> <CardDescription>{note}</CardDescription> </CardBody> </Card> )}<div className="grid grid-cols-1 sm:grid-cols-3 gap-4 w-full"> <DepotLink title="Ridge depot" note="Open until 18:00. Twelve kits ready." href="#ridge-depot" /> <DepotLink title="Quarry depot" note="Open until 20:00. Four kits ready." href="#quarry-depot" /> <DepotLink title="Mill depot" note="Closed today. Opens tomorrow, 08:00." href="#mill-depot" /></div>This week, all depots.
<div className="max-w-sm w-full"> <Card as="section"> <CardHeader> <CardTitle level={2}>Totals</CardTitle> <CardDescription>This week, all depots.</CardDescription> </CardHeader> <CardBody>128 kits collected, 6 outstanding.</CardBody> </Card></div>| Part | What it is |
|---|---|
| Card | The root. An article element by default, named by its title. Uses the .panel and .crosshair classes. |
| Interactive state | Only with interactive. On hover, and while anything inside has keyboard focus, the thin border turns accent.signal.fill and the whole card slides up 4px (four pixels). It slides back down when the pointer leaves or focus moves on. It's a CSS transform, so nothing around it moves. When someone has turned on reduced motion (prefers-reduced-motion), the border still changes but the card doesn't move. |
| CardMedia | A picture across the full width of the card, flush with the top and side edges inside the border, cropped to an aspect ratio. It's the first child, before CardHeader or CardBody. Without a src, its children fill the box instead (a placeholder). |
| CardHeader | Groups the title and description. |
| CardTitle | A heading at whatever level the page needs, 3 by default. |
| CardDescription | A short secondary line under the title. |
| CardBody | Grows to fill the space, so the footers in a row of cards line up. |
| CardFooter | The action bar: right-aligned, with the primary button last (rightmost), above a thin line that runs edge to edge. It's where a task ends, the same position as DialogFooter. |
| CardActions | Actions inside the content, placed in CardBody after the text. A row that wraps, left-aligned, primary first and secondary after it, with no line and no bar. It's on the left because people read a body down its left edge, so the button stays next to the text it acts on at any card width. |
| Keys | Result |
|---|---|
| Tab | Moves through the card's own buttons and links. The card itself isn't a stop, interactive or not. Focus on anything inside an interactive card lights its border and lifts it 4px. |
<Card className="border-2 border-[var(--color-accent-signal-fill)]"><Card style={{ border: '2px solid var(--color-accent-signal-fill)' }}>The panel sets its own border outside any CSS cascade layer, so a border utility class never wins. To highlight or select a card, set the border inline, using a token (one of the system's named design values).