Card

An article or section labeled by its own heading, with an optional actions row.

A grouped surface names itself with its own heading.

Open in new tab

Each preview is its own Live page in a frame, because this site is a Vue 3.5 app built on the Pulsar starter kit. An open list or popover stays inside its frame; in your application it opens over the page.

Installation

bash
suprnova live:add card

Usage

html
{% import "suprnova-ui/card/card.html" as card %}
{% call card::card("release", "Release notes") %}<p>Shared theme tokens.</p>{% endcall %}

Examples

Section with links

Two real links sit in a labeled actions row inside the section.

Open in new tab

Keyboard and accessibility

suprnova.card - a grouped surface with an explicit heading (DATA-001). A card is an article or a section labeled by its own heading; actions are real links or buttons in the actions row, and the card never wraps itself in one link.

API reference

card

ParameterDefaultDescription
idRequiredThe unique article or section id, also used for its heading.
headingRequiredThe text of the heading that labels this card.
level2The heading level: 2 or 3.
kind"article"The semantic container: article or section.

card_actions

ParameterDefaultDescription
label"Actions"The accessible name of the actions group.