ReferenceComponents

disclosure

Secondary detail folded under titles: FAQs, terms, technical notes.

Detail for whoever wants it. disclosure folds secondary text under titles — the questions people ask next, the terms, the technical sheet — so the page leads with the answer and keeps the rest one tap away.

What is the return window?30 days from delivery, unworn, in the box.
Who pays for the return?
How long does a refund take?

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

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

When not to use it

Never for the answer itself, and never for anything the user must read or fill in: a required step folded away is a step skipped. On a detail page it is the natural home for "Technical" or "Questions people ask"; the summary and the actions are never folded.

Props

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

PropTypeRequiredConstraints
itemsarrayYes1 to 8 entries.
items[].titlestringYes1 to 100 characters.
items[].bodystringYes1 to 800 characters.
single_openbooleanNoNone

On the wire

{
  "id": "blk_83",
  "type": "disclosure",
  "fallback_text": "Two questions about returns: the box, and refunds to a gift card.",
  "props": {
    "single_open": true,
    "items": [
      {
        "title": "Do I need the original box?",
        "body": "No. Any sturdy box works, as long as the shoes are unworn."
      },
      {
        "title": "Can I get a refund to a gift card?",
        "body": "Yes. Choose gift card when you start the return and the refund lands at once."
      }
    ]
  }
}

Interaction

Every row starts folded. A tap opens or closes it; with single_open, opening one closes the others.

Accessibility

Each title is a button that announces whether it is expanded or collapsed.