Ship-It Designv0.0.3
GitHub

Card

Each example below is a real component instance — flip the theme toggle to see how it adapts.

Default#

Loading…

Interactive#

Click me
Cards become interactive when an onClick handler is set.

Stats#

Loading…
Loading…

Props#

Props for Card
PropTypeDefaultDescription
titleReactNodeRender a header row with this title (and optional `actions`).
descriptionReactNodeDescription shown under the title (or above children when no title).
actionsReactNodeAction slot rendered to the right of the title.
footerReactNodeFooter slot rendered with a top divider beneath children.
onActivate(() => void) | undefinedKeyboard activation handler. When provided, Enter/Space on a card with `role="button"` (i.e. `interactive` truthy) calls this instead of synthesizing a fake mouse event for `onClick` — downstream `e.button` / `e.clientX` reads from the synthesized event are `undefined`, so prefer `onActivate` when you need an intent-only callback.
variant"ghost" | "default" | "elevated" | null | undefined
interactiveboolean | null | undefined