Card body content goes here.
Cards & Alerts
card, alert — Content containers and status messages.
Cards
Card with header and footer.
Cards with Icons
Optional subtitle
Card with icon and subtitle params.
Use slot header_actions for header actions.
Gradient Cards
Card with border_variant="gradient" — animated gradient border.
Card with header_variant="gradient" — gradient header background.
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).
Outer element is <article id="showcase-card-widget">.
- enabled
- Yes
- endpoint
- https://api.example.com
Metric Cards
The Threads card uses attrs_map={"id": "showcase-kpi-widget"} on the outer card root.