Skip to main content

Text

Type: text

Static or dynamic text display.

Supports children: No

Displays text values. Can show static values, dynamic values from message parameters, or results from DuckDB SQL queries. Priority: sql > value.

Example — static / param

{
"type": "text",
"props": {
"value": "Selected city: $city",
"variant": "h3"
}
}

Example — SQL

{
"type": "text",
"props": {
"sql": "SELECT COUNT(*) || ' records' FROM {{my_udf}}",
"variant": "muted"
}
}

Every widget is defined as { "type": "text", "props": { ... } }. The properties below describe the props object.

Props

Loading ....

Raw schema

Download the full schema file: /widget-schema/text.json