Hewn
Components

Components

Card

Elevated panel with optional header, body, and footer.

stablefree

Install

@hewnui/ui · hewnui

Terminal
npm install @hewnui/ui
Terminal
pnpm add @hewnui/ui
Terminal
yarn add @hewnui/ui
Terminal
bun add @hewnui/ui
Terminal
npx hewnui@latest add card

Card is for hierarchy that needs a surface — not a wrapper around every metric. Prefer divide and spacing on dense desks.

p95 latency

211ms

Median held at 47ms through the canary window.
-14msvs prior window

Usage

TSX
import { Card } from "@hewnui/ui";

<Card>
  <Card.Header>Latency</Card.Header>
  <Card.Body>p95 is 211ms across the canary.</Card.Body>
  <Card.Footer>vs prior window</Card.Footer>
</Card>

Accessibility

  • Card is a generic grouping element with no implicit widget role
  • Put headings in Card.Header so the structure is readable without color
  • Do not nest interactive regions that already have their own labels without a heading

API reference

Props for Card from @hewnui/ui/card. Generated from component types — not hand-written.

Prop

Type

On this page