Details Block

Create expandable/collapsible sections with a summary heading and detailed content. Useful for FAQs, step-by-step workflows, or organizing large amounts of content.

Syntax

<Details slots="heading, list" repeat="2" summary="Summary of details" subText="Description text:"/>

- First item heading:
  1. Step one
  2. Step two
  3. Step three
- Second item heading:
  1. Step one
  2. Step two
  3. Step three

Parameters

Example

data-slots=heading, list
data-repeat=2
data-summary=Getting Started Workflows
data-subText=Choose your workflow:
  • Workflow A:

    1. Step one
    2. Step two
    3. Step three
  • Workflow B:

    1. Step one
    2. Step two
    3. Step three