ReferenceComponents

steps

Instructions read in order: numbered steps on a rail, with nothing to tick.

How to do something, in order. steps numbers each step on a rail down the page: how to return an order, how to set a device up, a care routine. Nothing is ticked; the reader follows along.

Returning a pair1Start the return in your ordersOpen the order, choose the pair and say why.2Print the label, or show the QR codeWe email both.3Hand the parcel in within 14 daysAny store or a parcel locker.

Drawn live in your browser with the SDK’s own sizes and colours, not a screenshot.

Rendered natively by the Flutter SDK since 0.101.0 and the web SDK since 0.76.0. A build that does not declare it is never offered it.

groups are headings over runs of steps ("Morning", "Evening"); a step names its own by group_index (0-based), and the numbers run through. A step that uses one thing can carry its image_url, a caption naming it and an action that opens it.

When not to use it

Steps the user ticks off are a checklist. Where one order or claim stands is an order_tracker. Things planned at a time are a timeline.

Props

Every block also carries type and a required fallback_text of 1 to 300 characters.

PropTypeRequiredConstraints
titlestringNoUp to 80 characters.
groupsarrayNoUp to 4 entries.
groups[].labelstringYes1 to 40 characters.
itemsarrayYes2 to 10 entries.
items[].group_indexintegerNo0 to 3.
items[].titlestringYes1 to 80 characters.
items[].bodystringNoUp to 300 characters.
items[].image_urlstringNoNone
items[].captionstringNoUp to 60 characters.
items[].actionactionNo{ kind: "reply", text } or { kind: "open_url", url } or { kind: "navigate", route } or { kind: "call", phone } or { kind: "copy", text } or { kind: "add_to_calendar", title, starts_at }. See Actions.
ctaobjectNoNone
cta.labelstringYes1 to 60 characters.
cta.actionactionYes{ kind: "reply", text } or { kind: "open_url", url } or { kind: "navigate", route } or { kind: "call", phone } or { kind: "copy", text } or { kind: "add_to_calendar", title, starts_at }. See Actions.

On the wire

{
  "id": "blk_91",
  "type": "steps",
  "fallback_text": "Returning a pair: start the return in your orders, print the label, hand the parcel in within 14 days.",
  "props": {
    "title": "Returning a pair",
    "items": [
      { "title": "Start the return in your orders", "body": "Open the order, choose the pair and say why." },
      { "title": "Print the label, or show the QR code", "body": "We email both." },
      { "title": "Hand the parcel in within 14 days", "body": "Any store or a parcel locker." }
    ],
    "cta": { "label": "Start a return", "action": { "kind": "reply", "text": "Start a return" } }
  }
}

Interaction

A step with an action answers a tap anywhere on its row; a step without one is read, not pressed. cta is one full-width button under the last step. A picture that does not load leaves no empty box behind.