This page is generated from the product’s own definitions, so it is always current. To change it, change the product.
A small coloured chip stating a status, such as Good or Watch, with an optional icon. Its look comes from a preset, which rules can pick by value.
When to use it. Use when a value should read as a status at a glance; pick a Text with a colour rule when coloured words are enough, without a chip or icon.
| Slot | Name | Required | Field types | Aggregations | What it shows |
|---|---|---|---|---|---|
slot.badge.value | Label | no | string, number, date, percentage, boolean, enum, image_url | — | The field whose value is printed on the chip, using the binding's format. Any field type fits; unbound, the typed label shows. |
| Channel | Label | Value | Rules | Brand tokens | What it sets |
|---|---|---|---|---|---|
badge.align | Align | string: left, center, right | no | no | Where the chip sits in its box when the box is wider than the chip: left, centre or right. Default left. |
badge.corners | Corners | number | no | no | How rounded the chip's corners are, as a radius in points at size M; smaller and larger chips scale it. Default 2. |
badge.fill | Background | color | yes | no | Background colour of the badge chip. Default white (#ffffff). |
badge.icon | Icon | string: none, check, x, minus, warning, arrow-up, arrow-down, dot, pips-1, pips-2, pips-3, pips-4 | yes | no | Small icon before the label, such as a check, cross, warning sign, arrow or 1 to 4 pips. Default none. |
badge.iconColor | Icon color | color | yes | no | Colour of the badge's icon. By default it matches the label text. |
badge.label | Label | string | yes | no | The words printed on the badge. A rule outcome replaces them; an empty outcome prints the bound value. |
badge.opacity | Opacity | number | yes | no | How see-through the badge is, from 0 (invisible) to 1 (solid). Default 1. |
badge.preset | Preset | badge | yes | no | The badge's whole look (colours, icon, style, size, corners) as a named preset, built in or saved on the design. A rule here picks a preset by value. Default Neutral. |
badge.size | Size | string: s, m, l | no | no | How big the chip is: S, M or L, with label text of 7.5, 11 or 15 points. Default M. |
badge.textCase | Letter case | string: upper, as-typed | no | no | Capitals sets the label in capitals, tracked out; As typed keeps the words as written. Default Capitals. |
badge.textColor | Text color | color | yes | no | Colour of the badge's label; the Quiet style draws its edge in it too. Default grey (#5b626b). |
badge.variant | Style | string: solid, quiet | no | no | Solid fills the chip with no edge; Quiet draws an edge in the text colour. Default Quiet. |
See channels for every channel, rule kinds for what a rule can be, and operations for the operations that create and change this kind.