badge
A small pill label on a UI stage, sized to its text, with an optional leading dot; a `status` word picks its colours.
badge(h=1 size=1 text=Start free →)
Attributes
hnumberPill height in stage units (default 22).52×sizenumberFont size of the label (default 11).52×texttextThe label (default the `status` word, else `Badge`).52×paddingnumberSpace left and right of the label, in stage units (default 12).51×bordercolour #rrggbbtextColour of the pill's outline.48×colorcolour #rrggbbColour of the label and the dot.48×fillcolour #rrggbbPill fill (default from `status`, else pale indigo).48×statustextA state word that picks the palette: done / success green, active / open blue, blocked / failed red, planned / pending amber.4×dottrue / false`true` draws a dot in the text colour before the label.2×xnumber2×ynumber2×