Skip to content

Card

A bordered card with an optional title and description, for grouped content, not page headers.

Group: Layout · Kind: macro · in the lite catalog

example
OverviewYour account summary
3 open issues · 2 in review
padded · true
OverviewYour account summary
3 open issues · 2 in review

Open in the playground

The same specimen painted by React, SwiftUI, Compose and gpui.

exponential-ui-card on Web
exponential-ui-card on iOS
exponential-ui-card on Android
exponential-ui-card on Desktop
Prop Type Required Bindable Description
title string – – The card heading.
description string – – A muted line under the heading.
padded boolean – – Pads the body; off for edge-to-edge rows. Default true.
style style – – Extra Box styles merged over the card’s own.

None.

None.

many

The basic catalog’s Card renders as Card.

Box · Text

Role: group

group labelled by its title

Not focusable; no keys.

Recipe parts: Card/root Card/header Card/title Card/description Card/body

Keyed by: :hover :pressed :focus :disabled :checked :open :selected :invalid :dragover

Themes · Write a theme

Text · Plan · StatTile · Box · Stack · Grid · Separator · List