The Tag block renders a small colored label — a pill or chip — showing a short piece of text. Its look is driven by four style axes: a Color, a Variant, a Size, and a Shape. You can add a Status Dot, start/end Icons, a Max Width, a Disabled condition, and a Dismissible toggle (X button). Tags are display-first but interactive: wire On Click to make the pill act like a button, or On Dismiss to react when users remove it.


Note: Use Tag when you need a short text marker with color and shape (status, category, count). Use Avatar when you need an image/initials marker, or Button/Icon Button when you need an action control.
Tag — Content Properties
Property | Type | Default | Description |
|---|---|---|---|
Label | string (bindable, translatable) | Tag | The text shown on the tag. Non-text values are converted to text |
Tooltip | string (bindable, translatable) | — | Hover tooltip text |
Interactions | event list | — | On Click and On Dismiss event handlers |
Permissions | permission rule | — | Restrict who sees the block |
Tag — Appearance Properties
Property | Type | Default | Description |
|---|---|---|---|
Variant | Soft, Clear, Solid, Subtle, Ghost or Outlined | Solid | The tag's style family: how the Color turns into fill, border and text |
Size | xs, sm or md | sm | The tag's height and text size |
Color | named color, fine-tuned colors or conditions | brand | Base color from which fill, border and text are derived. Supports conditions for data-driven coloring |
Shape | Square (2px), Rounded (6px) or Pill (fully rounded) | Pill (unless your theme sets a different default) | Corner rounding of the chip |
Max Width | number (px) | Auto | Maximum width before the label truncates with an ellipsis |
Disabled | condition | — | Greys the tag and stops On Click and On Dismiss from firing |
Decorators → Status Dot | on/off | off | A small colored dot before the label, for status indicators |
Decorators → Dismissible | on/off | off | Adds an X button so users can remove the tag. Required for On Dismiss to fire |
Decorators → Start Icon | icon (bindable, conditional) | — | Icon at the start (left) of the label |
Decorators → End Icon | icon (bindable, conditional) | — | Icon at the end (right) of the label |
Visibility | conditions | — | Show or hide the block |
Custom CSS / HTML Attributes | CSS / attribute map | — | Advanced options. Appear only once enabled on the block |
Variant Style Guide
Variant | Visual Description | Typical Use |
|---|---|---|
Solid | Filled with the color, white text | High-emphasis status labels |
Soft | Light tint of the color with a matching light border, colored text | General-purpose status pills |
Subtle | Light tint of the color with no border, colored text | Low-emphasis markers |
Clear | Page background and a neutral gray border; only the text takes the color | Quiet category chips |
Outlined | Page background and a solid border in a dark shade of the color, colored text | Neutral or structural labels that still need a clear edge |
Ghost | Page background and a dashed light border in the color, colored text | Placeholder or pending states |
Note: In mobile apps only Solid, Soft and Clear have their own look. Subtle, Outlined and Ghost all show a plain gray-bordered chip with colored text. Also on mobile, the Tooltip is not shown and a Status Dot with a named color is not painted. With Solid, the named colors yellow (white text on no fill) and pink (fills cyan) render wrongly, so use warning or rose, or fine-tuned colors, for Solid tags that must look right on mobile.
Tag Events
| Event | Trigger | Available When |
| On Click | User clicks or taps the tag | Always — but does not fire when the tag is disabled |
| On Dismiss | User clicks the X button | Dismissible is on AND the tag is enabled |
Tag — Exposed State
| Binding | Type | Description |
{{ id.content.label }} | string | The tag's label after bindings resolve |
{{ id.content.tooltip }} | string | The resolved tooltip text |
{{ id.appearance.* }} | object | Color, variant, size, shape, maxWidth, disabled, decorators |
Tag Behaviors & Gotchas
Warning: Disabled tag ignores clicks and dismissal: When the Disabled condition is true, On Click and On Dismiss never fire. The pointer/hover affordance is also dropped.
Warning: Dismiss X only shows while Dismissible is on: With Dismissible off, the X button disappears and On Dismiss can never fire (even if a handler is still configured). The On Dismiss row stays visible in the panel when a handler is saved — leave Dismissible on for any tag whose On Dismiss should fire.
Note: Color and Disabled react to your data live: Both accept conditions and re-evaluate as bound data changes. This is the intended way to build status pills that respond to record state.
Note: Fine-tuned colors vs. named colors: A fine-tuned color set paints inline styles for background, border, and text. A plain named color uses the variant's built-in palette. Switching from fine-tuned back to a named color drops your per-channel overrides.
Note: Non-string labels are stringified: Numbers, booleans, objects, and arrays are coerced to their string form before rendering.
Tag Example: Status Pill
Add a Tag block and bind Label to the record's status, for example
{{ ds_ticket.data.status }}. The path depends on your data source's response.In Appearance, set Variant to Soft and turn on Status Dot.
On Color, add conditions: Success when the status equals Approved, Error when it equals Rejected. Set the default color to Gray for every other status.
Preview the page. The first condition that matches sets the color, and the pill recolors as the status changes.
Text Display — Typography Block Quick Reference
The Typography block (shown as Text in the block picker) is the primary text display component. See Typography & Link for the full reference. Key facts for context:
| Use Case | Block to Use | Why |
| Short status text, category label, count chip | Tag | Built-in color, shape, icon decorators, dismiss button |
| Headings, paragraphs, data-bound descriptions | Typography (Text) | Full typographic control, Markdown/HTML rendering, truncation |
| Clickable text that navigates to a URL | Link | Built-in navigation, underline styles, color scheme |
| Rich formatted content from a database field | Typography (Text) with type = Rich Text or HTML | Renders editor-generated or raw HTML correctly |
Related Blocks
Block | Relationship |
|---|---|
Use when you need a labelled action control rather than a status/marker pill | |
An icon-only control — use when there's no text to show | |
Use for an image/initials marker instead of a text pill | |
Use plain text display when the marker needs no color, shape, or icon | |
Use when the text needs to navigate somewhere |