Next: (hygguile components carousel), Previous: (hygguile components button), Up: API
Create a small status pill or label.
The variant argument picks a semantic color treatment while staying readable in both light and dark themes: the fill is the dark end of the ramp with near-white type on the light theme, and the light end with dark type on the dark theme, so the label clears the 4.5:1 ratio of WCAG AA.
The label text or inline nodes.
A semantic keyword: 'neutral, 'info, 'success,
'warning or 'danger.
A size keyword: 'sm, 'md or 'lg.
(badge "New" #:variant 'success)
Create a surface container grouping related content.
Compose a card from card-header, card-body and
card-footer fragments, or place any content inside directly.
The inner content or section fragments of the card.
List of symbols representing container CSS classes.
(card (list (card-header (h3 "Title")) (card-body (p "Body"))))
Create the main body section of a card.
The body content fragments.
List of symbols representing body CSS classes.
(card-body (p "Everything you need to know."))
Create muted descriptive copy inside a card.
The description text or inline nodes.
List of symbols representing typography CSS classes.
(card-description "Updated 3 minutes ago.")
Create the footer section of a card, typically holding actions.
The footer content fragments.
List of symbols representing footer CSS classes.
(card-footer (list (submit-button "Save")))
Create the header section of a card.
The header content fragments.
List of symbols representing header CSS classes.
(card-header (h3 "Recent activity"))
Create a card heading.
The heading text or inline nodes.
List of symbols representing typography CSS classes.
(card-title "Account summary")
Create a card that opens in place, its header doubling as the disclosure control.
The card is a native <details>, so it opens and closes with no
JavaScript at all, and id is placed on the <summary> rather
than on the <details>: a link to that id then points *inside* the
card, which is what makes a browser open it as it scrolls there, and the
summary is the header a reader should land on.
The nodes revealed while the card is open.
An optional HTML identifier, placed on the summary, for a link to land on.
The card’s title, rendered as a real heading inside the summary.
An optional Phosphor icon name shown before the title, e.g.
'cards.
An optional short label shown as a badge beside the title, such as the category a card belongs to.
Whether the card starts open.
Whether the card spans the whole row of a grid it is placed in.
An association list of data-* attributes rendered on the
<details>, named without the data- prefix. These are what
a sort-control orders a tray of cards by, and a card carries as
many as the orderings you intend to offer: '((order . "0") (title
. "Cards")).
List of additional container CSS classes.
List of CSS classes for the header, which is the disclosure control.
List of CSS classes for the layer holding content.
(expandable-card (p "Cards group related content together.")
#:id "cards"
#:title "Cards"
#:icon 'cards
#:tag "Layout"
#:open #t
#:data '((order . "0") (title . "Cards")))
Create a compact key-figure block for dashboards and summary panels.
The prominent value to display, such as a number or short string.
A short descriptive label rendered below the value.
An optional trend string, e.g. "+12%".
A semantic keyword controlling the trend color: 'success,
'danger or 'neutral.
List of additional utility CSS classes.
(stat-card #:value "1,204" #:label "Active users" #:trend "+12%")
Next: (hygguile components carousel), Previous: (hygguile components button), Up: API