Weftv0.4.0
GitHubFigma
Blade AI
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

#preview

Change the options and the code follows. Show code opens the React snippet.

Settlement setl_4521
7 Oct 2026 · HDFC ••4521
Net settled amount is $12,481.36 after fees and GST.
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-states

Default, small, footer, hover, focus, selected and disabled, from the Card artboard.

Card · 7 states
Card title
Card description goes here.
Content slot
Default
Card title
Card description goes here.
Content slot
Small
Card title
Card description goes here.
Content slot
With footer
Card title
Card description goes here.
Content slot
Hover
Card title
Card description goes here.
Content slot
Focus
Card title
Card description goes here.
Content slot
Selected
Card title
Card description goes here.
Content slot
Disabled

Props

#props

Read 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

#usage

Short 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

#accessibility

A 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.