Skip to content

Layout & structure

ICard ​

A panel with an optional header and footer. Two variants, four paddings, and no opinion about what goes inside it.

Invoice INV-1042

Northwind Supply · due 14 March

Four line items totalling €1,240.00.

Variants ​

outline draws a border on the page background. soft fills instead, for a panel that should sit back rather than stand out.

Outline
Soft

Padding ​

Use none when the content draws its own edges — a table, a list of rows, an image — and pair it with overflow-hidden so the corners clip.

Design retainer
Hosting, March
Support hours

An ITable is the other common occupant of a none card.

title and description are shorthands for the header. Use the slots when either needs markup — an action on the right of the title, say.

UsageHealthy
Storage62%

Props ​

PropTypeDefaultDescription
variant'outline' | 'soft''outline'Bordered or filled
padding'none' | 'sm' | 'md' | 'lg''md'Inner spacing
titlestring—Header title, without writing the slot
descriptionstring—Header description
asstring'div'Element to render
asChildbooleanfalseRender the child instead, forwarding props
unstyledboolean—Drop built-in classes
classstring—Merged with the built-in classes
ui{ root?, header?, title?, description?, body?, footer? }—Per-element class overrides

Slots ​

SlotWhen to use it
defaultThe card body
headerReplaces title / description entirely
titleKeeps the header layout, replaces just the title
descriptionSame, for the description
footerActions or a summary along the bottom. Laid out as a row