# Card A surface that groups related content. ## Props | Name | Type | Default | Description | | --- | --- | --- | --- | | `title` | `string` | — | Title rendered as the card header. Optional. | | `padding` | `"sm" \| "md" \| "lg"` | `md` | Inner padding preset. | | `elevated` | `boolean` | `false` | Apply a soft drop shadow for higher elevation. | | `children` \* | `ReactNode` | — | Card body content. | ## Basic **`Basic.stories.tsx`** ```tsx import { Card } from '../../../src/pixie/Card.js'; import { Button } from '../../../src/pixie/Button.js'; export default () => (

The full Markbook source lives at github.com/doidor/markbook.

); ``` ## Elevated **`Elevated.stories.tsx`** ```tsx import { Card } from '../../../src/pixie/Card.js'; export default () => (

Cards with the elevated flag get a soft drop shadow for higher visual emphasis.

); ``` ## Padding sizes **`PaddingSizes.stories.tsx`** ```tsx import { Card } from '../../../src/pixie/Card.js'; import styles from './PaddingSizes.module.css'; export default () => (
Tight Default Roomy
); ``` **`PaddingSizes.module.css`** ```css .row { display: flex; gap: 1rem; flex-wrap: wrap; } ```