Card
A box with a header (title, description and actions), a body and a footer, or a card that is one big link.
- Use it for
- A box with a heading, actions, body and footer, or a whole-card link with href.
Card preview
Component library
Reusable website and AI controls.
Explore focused examples, controlled interactions and documented application responsibilities.
Installation
npm install @stackunseen/uiimport { Card } from '@stackunseen/ui';@stackunseen/ui/styles.cssParts
A section you fill with parts. Use only the ones you need.
How the parts fit together
<Card>
<Card.Header icon={<TimerIcon />} actions={<Button size="sm">Edit</Button>}>
<Card.Title>Time saved</Card.Title>
<Card.Description>When tool calls save you time</Card.Description>
</Card.Header>
<Card.Content><Numeric size="lg" value="11.4 h" qualifier="vs September" /></Card.Content>
<Card.Section>By tool, in a panel one step inside the card</Card.Section>
<Card.Footer>Updated today</Card.Footer>
</Card>CardThe surface. With
hrefthe whole card is one link.Card.HeaderTitle and description, with an optional icon tile before them and actions beside them.
Card.TitleThe heading;
assets its level.Card.DescriptionA line under the title.
Card.ContentThe main content.
Card.SectionA panel one surface step inside the card, for figures or grouped controls.
Card.FooterActions or details at the bottom.
Usage and props
Group related content with Header, Title, Description, Content and Footer. These parts accept your children; render your own header and footer content. Set Title.as to match the page heading level. Pick a heading level that fits the page. Add aria-labelledby only when the card should be a named region. With href the whole card is one link, so keep buttons and other links out of it.
childrenReactNode (optional)- Your content, with or without the supplied compound parts.
aria-labelledbystring (optional)- Point to the title id when the section should be a named region.
classNamestring (optional)- Add application styles to the section. Each compound part also accepts className.
All props
Loading…
For your coding agent
Give the agent this page instead of a screenshot. The prompt wraps the page with the install and import lines and the rule that your server, not a click, completes an action.
- Contract
- Native section props · href? · external? · Card.Header icon? actions? actionsLabel? · Card.Title as?: h2–h6 · Card.Description/Content/Section/Footer
- Keeps honest
- Pick a heading level that fits the page. Add aria-labelledby only when the card should be a named region. With href the whole card is one link, so keep buttons and other links out of it.
- MCP
read_component "Card"on the docs endpoint
Keyboard and customization
Keyboard
The card itself isn’t a tab stop; links and actions inside it follow the normal page order.
Customization
Change shared colors, spacing, corners and icons with the theme. Use the component's supported props to adapt its content and layout. Customization guide and Theme Studio