Card

Content on a raised surface, padded as one section until it holds Sections.

Installation

Examples

Default

Its Sections stack with a line between each; the first reads as a header and the last as a footer. SectionAction holds a header's icon buttons, reaching into its padding so each icon sits 12px in. A footer of buttons takes p-1.5, so its buttons sit 6px in, as the header's do, and it's as tall as the header.

For a panel docked in a layout, put material-panel and sections() on your own element.

demo.tsx

Golden hour

Exposure +0.35Temperature +12Shadows +20

Without sections

Content outside a Section takes the card's padding, as one section would.

padding.tsx
Harbor at duskLisbon, 12 March, 7:42 PM

Edge to edge

A Section with px-0 lets a row that scrolls run to the card's edges and fade there.

edge-to-edge.tsx

Presets

Canon EOS R5 · RF 24–70mm F2.8 · ƒ/2.8 · 1/250 s · ISO 100 · 8192 × 5464

Anatomy

Each part's data-slot, which a theme styles, is beside it.