Skip to content

Badge ​

SCABadge is a small coloured label with an optional icon before and after the text. Icon names are typed (IconName); see Icons.

Props ​

PropTypeDefaultDescription
appearance'blue' | 'green' | 'grey' | 'red' | 'orange' | 'raspberry' | 'magenta' | 'purple' | 'grape' | 'violet' | 'cyan' | 'teal' | 'aquamarine' | 'emerald' | 'white''blue'Colour.
emphasis'high' | 'medium' | 'low''high'Filled (high), tinted (medium) or light (low).
size'medium' | 'small''medium'small is 16 px tall with 10 px icons and text.
iconBefore / iconAfterIconName—Icon before / after the label.

The default slot is the label. Without a label the badge is a square icon-only badge. There are no emits.

Props ​

appearance ​

Emphasis ​

Size ​