Unify Applications
Logo
Tag & Text

Tag & Text

Logo

5 mins READ

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.

tag_and_text.png
tag_and_text.png

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

EventTriggerAvailable When
On ClickUser clicks or taps the tagAlways — but does not fire when the tag is disabled
On DismissUser clicks the X buttonDismissible is on AND the tag is enabled

Tag — Exposed State

BindingTypeDescription
{{ id.content.label }}stringThe tag's label after bindings resolve
{{ id.content.tooltip }}stringThe resolved tooltip text
{{ id.appearance.* }}objectColor, 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

  1. 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.

  2. In Appearance, set Variant to Soft and turn on Status Dot.

  3. 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.

  4. 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 CaseBlock to UseWhy
Short status text, category label, count chipTagBuilt-in color, shape, icon decorators, dismiss button
Headings, paragraphs, data-bound descriptionsTypography (Text)Full typographic control, Markdown/HTML rendering, truncation
Clickable text that navigates to a URLLinkBuilt-in navigation, underline styles, color scheme
Rich formatted content from a database fieldTypography (Text) with type = Rich Text or HTMLRenders editor-generated or raw HTML correctly

Block

Relationship

Button

Use when you need a labelled action control rather than a status/marker pill

Icon Button

An icon-only control — use when there's no text to show

Avatar

Use for an image/initials marker instead of a text pill

Typography

Use plain text display when the marker needs no color, shape, or icon

Link

Use when the text needs to navigate somewhere

FAQs

How do I set Tag color dynamically based on a status value?

Bind the Color property to a conditional expression, for example: {{ row.status === 'active' ? 'success' : row.status === 'error' ? 'error' : 'gray' }}. The accepted values are gray, brand, error, warning, success, blue, purple, fuchsia, cyan, lime, pink, violet, indigo, rose and yellow.

Can a dismissed Tag be shown again later?

A dismissible Tag fires the On Dismiss event when the user clicks its close button, but the block itself does not track dismissed state — it simply emits the event. To hide the tag after dismissal, set a page variable to false in the On Dismiss handler and bind the Tag's Visibility condition to that variable. Set the variable back to true when you want the tag to reappear.

What is the difference between the On Click and On Dismiss events?

On Click fires when the user clicks anywhere on the tag body (the label area). On Dismiss fires only when the user clicks the dismiss (×) button in the end-decorator position. If both are enabled and the user clicks the dismiss button, only On Dismiss fires — it does not also fire On Click.