import { useState } from "react"; import { Card, CardGrid } from "./Card"; import { Button, Checkbox, Counter, SectionHeading } from "./primitives"; export function ContainerShowcase() { const [water, setWater] = useState(3); const [read, setRead] = useState(false); return (

Card surfaces

Card · soft / outlined

A neutral fill gathers related content without adding another divider. Use it for summaries, guidance, and a small set of actions.

A fine border defines a standalone group on white. Useful when a form or a focused task needs its own space.

Bento layout

CardGrid · bento

{Number(water === 8) + Number(read)} / 2

habits complete

{water === 8 ? "Complete for today" : `${8 - water} glasses to go`}

setRead(event.target.checked)} />

Changes to these examples are not saved.

Equal grids suit peer items. Bento gives one summary more room; smaller cards hold short tasks. Both collapse in reading order on small screens. Use one surface per group, with spacing inside and no shadows.

{'\n  …\n  …\n  …\n  …\n'}
); }