Variable

Variables represent dynamic or templated values, such as event properties, column references, or liquid template variables.

#

#

#

Use the fallbackValue prop to show a fallback value alongside the variable name. The fallback is displayed in a filled section to distinguish it visually.

#

#

Use the fontWeight prop to control the visual emphasis of the variable. Defaults to "normal".

#

#

#

  • Displaying dynamic template values, such as event properties or column references.
  • Showing user-defined variables in configuration UIs.

#

  • For static text or code snippets, use Code instead.

#

  • Use normal (default) for most cases.
  • Use medium to match surrounding medium-weight text contexts.
  • Use semibold to draw additional emphasis to a variable.

#

  • Variable names should match the underlying data reference exactly (e.g., first_name, not First Name).

#

Inherits margin props.

NameDefaultDescription
children

ReactNode

The variable name to display.

fallbackValue

string

When provided, renders a fallback section appended to the variable name. The fallback section has a filled background to distinguish it visually.

fontWeight"normal""normal" | "medium" | "semibold"

Font weight.

size"md""sm" | "md"

Determines the size of the component.

On this page

  • Usage
  • Default
  • With fallback
  • Sizes
  • Font weight
  • Combinations
  • Guidelines
  • When to use
  • When not to use
  • Font weight
  • Content
  • Props