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".
normal (default) for most cases.medium to match surrounding medium-weight text contexts.semibold to draw additional emphasis to a variable.first_name, not First Name).Inherits margin props.
| Name | Default | Description |
|---|---|---|
children | — | ReactNodeThe variable name to display. |
fallbackValue | — | stringWhen 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. |