Skip to content

Data Display

Card

A surface for grouping related content.

stableNo JS requiredhydrateless/card.css

A surface for grouping related content, with optional header, body, and footer regions. CSS-only.

Playground

Live

Starter plan

Everything you need to ship.

Unlimited projects, 5 GB storage, and email support.

Props

The framework bindings expose these props (and forward the rest to the root element).

PropTypeDefaultDescription
interactivebooleanfalseAdd hover/active elevation for clickable cards.

CSS variables

Override these on any ancestor to theme the component. See the theme studio to preview changes live.

CSS variableUsed for
--hl-surfaceCard background.
--hl-borderCard border.
--hl-radius-lgCorner radius.
--hl-shadow-smResting elevation.

Accessibility

  • When a whole card is clickable, wrap it in a link or button so it is keyboard reachable.

Released under the MIT License.