All components

LAYOUT / COMPONENTS

Card

Group related content and actions.

Live component2 documented props

About card

A card serves as a container to visually distinguish pieces of content, commonly employed in multiples to enhance scannability and organize information effectively.

01

Anatomy

Shared parts, named consistently.

  1. 1
    TitleHeader

    The Card’s header

  2. 2
    TitleExpand/collapse

    Optional control for accordion functionality

  3. 3
    TitleTitle

    Title which describes the Card content

  4. 4
    TitleSubtitle

    Optional subtitle which describes the Card content

  5. 5
    TitleContainerRequired

    Main content body for elements

  6. 6
    TitleDividerRequired

    Dividers in cards mark sections or show expandable areas, aiding organization. (Visible only when the card expands.)

Try the default

A working example with the shared V1 visual language.

A place for your ideas

Build a shared language for every product your team creates.

Workspace

When to use

Group content around one subject. Give the card a heading and make each action explicit; avoid nested interactive containers.

Only links and buttons inside the card enter the keyboard sequence.

Related components

Source & adaptation

V1 semantic colors, DM Sans typography, compact controls, and responsive layouts. The API table describes this implementation; source design notes may use earlier API terminology.

components/ui.tsx