ReferenceComponents

booking_card

A reservation summary: what, when, where, its reference.

What was booked, in one card. booking_card is the summary that follows a choice: what, when, where, plus up to eight label/value lines for the details that matter afterwards: the reference number, the person, the price.

The optional image runs to the card's own edge, so a venue or a class looks like a place rather than a row in a database.

reference is the booking's number with a copy button; status is a small pill ("Confirmed", tone success); starts_at, ISO 8601 with its offset, adds "in 2 hours" under when while that is still ahead. Since Flutter 0.40.0 and Web 0.17.0.

Gait analysis and fittingNeon Kicks Amsterdam, Haarlemmerstraat 24
Wednesday 2 September, 10:00 to 10:45
Fitting room 2, ground floor
FitterMeral Doğan
BookingFIT-2291
Confirm the fitting

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

Rendered natively by the Flutter SDK and the Web SDK, both since 0.1.0.

When not to use it

Do not use it to offer times. Choosing is datetime_slots; this block records the outcome.

Do not use it as a payment summary either. Money with a total belongs in receipt, which renders subtotal, tax and total as a proper column.

Props

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

PropTypeRequiredConstraints
titlestringYes1 to 120 characters.
subtitlestringNoUp to 200 characters.
whenstringNoUp to 80 characters. Formatted by you, in the user's locale.
wherestringNoUp to 120 characters.
image_urlstringNohttps only.
linesarrayNoUp to 8 entries.
lines[].labelstringYesUp to 60 characters.
lines[].valuestringYesUp to 120 characters.
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.
referenceobjectNoNone
reference.labelstringYes1 to 30 characters.
reference.valuestringYes1 to 40 characters.
statusobjectNoNone
status.labelstringYes1 to 24 characters.
status.tonesuccess | warning | error | neutralNoNone
starts_atstringNoISO 8601 with its offset (2026-10-10T09:30:00+03:00) or Z.

On the wire

{
  "id": "blk_13",
  "type": "booking_card",
  "fallback_text": "Fitting on 2 September at 10:00, Neon Kicks Amsterdam.",
  "props": {
    "title": "Gait analysis and fitting",
    "subtitle": "Neon Kicks Amsterdam, Haarlemmerstraat 24",
    "when": "Wednesday 2 September, 10:00 to 10:45",
    "where": "Fitting room 2, ground floor",
    "image_url": "https://cdn.example.com/store-amsterdam.jpg",
    "lines": [
      {
        "label": "Fitter",
        "value": "Meral Doğan"
      },
      {
        "label": "Booking",
        "value": "FIT-2291"
      }
    ],
    "cta": {
      "label": "Confirm the fitting",
      "action": {
        "kind": "reply",
        "text": "Confirm booking FIT-2291"
      }
    }
  }
}

Interaction

Only the CTA, and the reference's copy button, are interactive; the card itself is not tappable. The CTA carries any kind the build declares; the usual one is add_to_calendar, whose times the server checks against your actions' results.

If the confirmation writes to your system, register it as a write action and let the server raise a confirm_card. Do not treat the CTA as approval.

States

StateWhat the SDK draws
LoadingA wide image placeholder over a title bar and a detail line.
No imageThe card starts at its title. Nothing is reserved for a picture that is not coming.
Image brokenThe image slot holds a sunk rectangle with a broken-image glyph and the card renders normally.

Accessibility

The image is decorative and announces nothing, because the title is the very next thing in the tree and an alt repeating it makes a reader hear it twice. fallback_text should carry what, when and where in one sentence, because those three are what the user actually needs to hear back.