Appearance
Badge
SCABadge is a small coloured label with an optional icon before and after the text. Icon names are typed (IconName); see Icons.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
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 / iconAfter | IconName | — | 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.