Card

Combine a header, content, and actions on a workspace surface.

Example

Design handoff

Prepare the files and decisions for the implementation team.

In review
Owner
Avery Chen
Due
Friday

Setup

Download the shared Inlay assets once. Then choose HTML, React, or Vue and copy the example above.

Outlined card

Use the shared transparent surface and outline.

Example

Review access

Check who can open the handoff.

Compact card

Use a header on its own for a short summary.

Example

Review queue

3 requests are waiting for an owner.

Card with a form

Put the content and submit action inside the same form.

Example

Invite a reviewer

Send the handoff to a teammate for a second look.

Card with a table

Use CardTable to align data with the card edges.

Example

Review access

Who can open the handoff.

TeammateRole
Avery ChenEditor
Jordan RiveraReviewer
Sam MorganViewer

Usage

CardUse Card as the outer surface. Add only the sections the content needs. The compact variant reduces the section padding.
SurfacesUse the default fill for standard cards, outlined for a transparent card with a stronger edge, raised for a lighter surface, or inset for the base surface. In HTML, use the matching ilui-card modifier class.
Header and toolbarGroup CardTitle and CardDescription in CardHeading. Put badges or actions beside them in CardToolbar.
ContentUse CardContent for a padded body or CardTable for a table that touches the card edges. The table keeps its native headings and scrolling.
FooterUse CardFooter for actions at the bottom. When a card contains a form, keep its submit button inside that form.
DividersSet the divider prop on CardHeader or CardFooter in React and Vue. In HTML, add data-ilui-card-divider to the header or footer. Dividers are off by default.