(this page was created automatically. In case of formatting issues, please visit the official Wiki Page)

Label

Overview

Example use of the label

Specs

Tokens

Token Description
displayName Display name of the component shown in the structure panel
textTranslations Sets label text with multi-language support and template expressions
rules Conditional formatting rules that change label text based on data conditions
fontSize Font size of the label text in pixels
fontWeight Boldness of the label text (normal, semi-bold, bold)
widthAuto Controls if the label automatically sizes to fit its content
leftIcon Icon displayed to the left of the label text
rightIcon Icon displayed to the right of the label text
ellipsisMode Truncates overflowing text with an ellipsis (…)
showTooltip Enables showing a tooltip when hovering
tooltipText Text displayed inside the tooltip
tooltipPlacement Position of the tooltip relative to the label (top, bottom, left, right)
tooltipDelay Delay in ms before tooltip appears
type Defines content type (text, number, date-time)
format Formatting pattern for date-time values
paddingClass CSS classes that configure spacing around the label
displayConditions Defines conditions for displaying the component
visibilityPolicySetId Controls visibility based on policy sets
events Configures events that the component can trigger or respond to
ON_INIT (Events) Event triggered when the label is initialized
ON_DESTROY (Events) Event triggered when the label is removed
id Unique identifier for programmatic access
dataTestId Identifier for automated testing
enableAsHotspot Enables the label as a guided tour hotspot
guidedTourHotSpotTitle Title for the guided tour hotspot
guidedTourHotSpotDescription Description for the guided tour hotspot

Structure

(Configured in General Properties)

(Configured in Visual Properties)

(Configured in Visibility)

Tooltip

(Configured in Visual Properties)

Styling

(Configured in Visual Properties)

Labels variations

Actions & Variants

(Configured in Events)

Authorization

(Configured in Authorization)

Testing

(Configured in Testing Hooks)

Links

Guidelines

Usage

Sizing & Layout

Tooltips

Data-Driven / Conditional Behavior

Visibility & Authorization

Content & Localization

Dos & Don’ts

Do Don’t
Choose the correct content type and format dates deterministically. Leave dates or numbers as raw text with inconsistent rendering.
Keep labels short; truncate if space is limited. Write long sentences that wrap unpredictably.
Use icons to reinforce meaning while keeping clear text. Replace the label entirely with an icon.
Define targeted rules with a default fallback. Manually toggle text outside the component’s rule system.
Add a tooltip for definitions or truncated text. Put critical information only in a tooltip.
Adjust emphasis with text size/weight. Depend on ALL CAPS or ad-hoc styling hacks.
Restrict visibility for sensitive content. Show restricted information and rely on wording alone.
Show the label only when relevant to the current state. Keep it visible regardless of context.
Use lifecycle hooks for setup and cleanup. Initialize late and forget to release resources.
Use stable test hooks for automation. Target the label by visible text that may change.

Accessibility