Display · Cardstable
Card
Groups related content and actions about one subject into a single surface. A header with title, description and action, a free content area and an optional footer. Can become a selectable button.
Preview
#previewChange the options and the code follows. Show code opens the React snippet.
Settlement setl_4521
7 Oct 2026 · HDFC ••4521
card-example.tsx
import { Card } from "@blade-ai/weft/components/card";
<Card
title="Settlement setl_4521"
description="7 Oct 2026 · HDFC ••4521"
footer={<Button>Download</Button>}
>
Net settled amount is $12,481.36 after fees and GST.
</Card>All states
#all-statesDefault, small, footer, hover, focus, selected and disabled, from the Card artboard.
Props
#propsRead from the component source. Booleans are is-prefixed. A star marks a required prop.
Prop
Type
Default
Description
title
ReactNode
—
Heading.
description
ReactNode
—
Supporting line under the title.
action
ReactNode
—
Top-right slot, usually a text button or menu trigger. Avoid with onClick: interactive cards must not nest controls.
children
ReactNode
—
Body content.
footer
ReactNode
—
Bottom area under a divider, right-aligned.
size
"default" | "sm"
"default"
Padding 24 (default) or 16 (sm).
onClick
(event: MouseEvent<HTMLElement> | KeyboardEvent<HTMLElement>) => void
—
Makes the whole card a button: hover and focus styles, Enter / Space activate.
isSelected
boolean
false
Selected look for interactive cards. Exposed as aria-pressed.
isDisabled
boolean
false
—
Usage
#usageShort rules for choosing and writing card.
Do
Keep one topic per card.
Put the main action in the footer or the header action, not both.
Use size sm in dense layouts and side panels.
Don't
Nest controls inside an interactive card.
Stack cards inside cards.
Use a card for a single line of text.
Accessibility
#accessibilityA plain container. With onClick it becomes a button.
Keyboard
Key
Action
Enter / Space
Activates an interactive card.
Tab
Moves focus to an interactive card.
ARIA
Element
Role / attribute
When
Interactive card
role="button" · tabindex 0
When onClick is set.
Selected card
aria-pressed="true"
isSelected.
Disabled card
aria-disabled="true"
isDisabled.