DmBadge

Updated Aug 18, 2026
DataMagik Application Designer

DmBadge

DmBadge — the pill.

When not to use it. For a number that changes, use DmStat — a badge is a label, not a readout.

States

ahead

DmBadge — ahead, light theme DmBadge — ahead, dark theme

behind

DmBadge — behind, light theme DmBadge — behind, dark theme

unrated

DmBadge — unrated, light theme DmBadge — unrated, dark theme

solid

DmBadge — solid, light theme DmBadge — solid, dark theme

Example

<DmBadge>…</DmBadge>

Props

NameTypeRequiredDefault
tone'neutral' | 'info' | 'success' | 'warning' | 'error' | 'ahead' | 'behind' | 'even' | 'unrated' | 'future''neutral'
solidbooleanfalse
size'sm' | 'md''md'

Slots

default

Worth knowing

The shop-floor tones (`ahead`, `behind`, `even`, `unrated`, `future`) arrive computed from the server. `unrated` is deliberately neutral: it means nobody has told us the rate, which is neither good nor bad.

Was this page helpful?