Skip to content

Badge Block ​

Type: Reference | Audience: Interface builder user

The Badge block renders a small status label. Use it for tags, statuses, or categories inside your view.

Six Badge blocks rendered in two rows of three: Default (blue), Success (green) and Warning (yellow) on the top row; Destructive (red), Info (light blue) and Outline (white with a thin border) on the bottom row.

Settings ​

SettingDescription
VariantThe badge's color style. Pick from the list below. In Data mode, bind the variant name to data.
TextThe badge's label. Supports the Data Picker.

Variant modes ​

The Variant field has two tabs:

  • Select -- pick a specific variant from a dropdown.
  • Data -- bind the variant name to data via the Data Picker. The resolved value must match one of the variant identifiers below; anything else falls back to the default style.

Variants ​

Display labelIdentifier (Data mode)
Defaultdefault
Destructivedestructive
Infoinfo
Successsuccess
Warningwarning
Secondarysecondary
Outlineoutline
Pinkpink
Violetviolet
Light BluelightBlue
Disableddisabled

Style and Visibility ​

The Badge block uses variant-based styling, so the Style sub-tab does not apply -- it shows an info message that custom block styles are not applied to badge components. The standard Visibility sub-tab works the same as for every other block. See Conditional Visibility.