# Card

A linked or static summary of one item, in a grid.

Import from `@a31labs/rax/card`.

## Usage

```tsx
<CardGrid><Card title="Billing" href="/billing" renderLink={(p) => <Link to={p.href} className={p.className}>{p.children}</Link>} /></CardGrid>
```

## Rules

Props: `title`, `description`, `media` (16/9, object-fit cover), `meta` (a row of badges or text), `actions`, `href`, `renderLink` (plug in a router link). An item in a collection; Panel stays for sectioned app regions. Surface, 1px `line` border, radius 10px, no shadow. Title (an `h3`) clamps to 2 lines and the description to 3. With `href` the title link stretches over the whole card, `actions` stay clickable above it, the hover outline is ink-3 and the focus ring goes around the card. `CardGrid` is auto-fill minmax(260px, 1fr) with a 16px gap.

Page: https://rax.a31.at/components/card
