Data display components for widgets

Reference for list, table, key-value, badge, progress and timeline, the widget components that show data loaded from an action or kept in a state.

Working draft. These docs are illustrative: names, endpoints and examples describe the intended behaviour and can change before launch.

Data display components show structured information, usually data that a function loaded from an action. Bind them to a state that holds a list or an object, and they redraw when the data changes. Use them for order details, booking summaries and status views.

Components

Type Shows
list A repeated block for each item in a list.
table Rows and columns of values.
key-value Labeled facts, such as "Carrier" and "Tracking code".
badge A short status label, such as "Shipped".
progress A bar that shows how far something has come.
timeline Dated events in order, with the finished ones marked.

Properties

Property Applies to Description
items list, timeline A binding to a list. For timeline, each item has title, description, time and done.
itemTemplate list A component repeated for each item. Use {{item.key}} inside it.
columns table A list of { "key": "...", "label": "..." } objects.
rows table A binding to a list of objects. Each column reads its key from the row.
pairs key-value A list of { "label": "...", "value": "..." } objects. Values can be bindings.
text badge The label.
tone badge default, success, warning or danger.
value progress A number from 0 to 100, or a binding to one.
label progress Optional text next to the bar.
showIf All A binding. The component appears only when the value is true or non-empty.

Example

{
  "type": "card",
  "title": "Order {{states.order.number}}",
  "children": [
    { "type": "badge", "text": "{{states.order.status}}", "tone": "success" },
    {
      "type": "key-value",
      "pairs": [
        { "label": "Carrier", "value": "{{states.order.carrier}}" },
        { "label": "Tracking code", "value": "{{states.order.trackingCode}}" }
      ]
    },
    { "type": "progress", "value": "{{states.order.progress}}", "label": "Delivery" },
    { "type": "timeline", "items": "{{states.order.events}}" }
  ]
}

A matching state value looks like this:

{
  "number": "A-1042",
  "status": "Shipped",
  "carrier": "Sample Carrier",
  "trackingCode": "SC123456",
  "progress": 60,
  "events": [
    { "title": "Packed", "time": "2026-03-12 09:10", "done": true },
    { "title": "Shipped", "time": "2026-03-13 14:30", "done": true },
    { "title": "Out for delivery", "done": false }
  ]
}

You should see a status badge, two labeled facts, a bar at 60 percent and a timeline with the first two events marked as done.

Tips

  • Use table only for data that is truly tabular. On a narrow chat window, a list of small cards reads better.
  • Use key-value for fewer than six facts. For more, group them under separate cards.
  • Pair a badge with a plain-word text so the meaning does not rely on color alone.
  • Hide a block with showIf until its data has loaded, so customers do not see empty labels.
  • States explains how to hold the data these components read.
  • Functions shows how callAction loads it.
  • Media covers images and carousels, for product-style lists.

Something unclear or missing? Tell us and we will fix the page.