Cards & Alerts

card, alert — Content containers and status messages.

Cards

Simple Card

Card body content goes here.

With Footer

Card with header and footer.

Cards with Icons

With Icon

Optional subtitle

Card with icon and subtitle params.

Settings

Use slot header_actions for header actions.

Gradient Cards

Gradient Border

Card with border_variant="gradient" — animated gradient border.

Gradient Header

Card with header_variant="gradient" — gradient header background.

Both

Combined border_variant="gradient" and header_variant="gradient".

Collapsible + Gradient

Collapsible card with gradient border. Works on <details> too.

Collapsible Card

Click to expand

This content is inside a native <details> element. No JavaScript.

Resource Cards

Widget root (surface chrome + HTMX)

Pass attrs_map={"id": "…"} on card, config_card, or metric_card so the outer element is a stable hx-target without an extra wrapper div. See docs/fundamentals/ui-layers.md (surface chrome).

Swappable panel

Outer element is <article id="showcase-card-widget">.

Pipeline
enabled
Yes
endpoint
https://api.example.com

Metric Cards

128 Open tasks

Assigned to your team

99.9% Uptime
+0.2% this week
42 Threads

Active this hour

The Threads card uses attrs_map={"id": "showcase-kpi-widget"} on the outer card root.

Alerts