Spectrum Design Data
  • Components
  • Tokens
  • Registry
  • AI
  • Articles
  • Specification
  • Tools
  • Accordion

    Spectrum docs

    An accordion is a vertically stacked set of interactive headings that each contain a title and a content area.

    Property Type Values Default Required Description
    size string s, m, l, xl m No -
    isQuiet boolean - false No -
    isDisabled boolean - false No -
    isOpen boolean - false No Whether the rendered accordion item is expanded. Drives the chevron direction and the content area. Per-item expansion in a data-driven accordion is items[].isExpanded.
    hasActionButton boolean - false No Whether the rendered accordion item shows an icon-only action button on its trailing edge. Per-item in a data-driven accordion is items[].hasActionButton.
    hasSwitch boolean - false No Whether the rendered accordion item shows a switch on its trailing edge. Per-item in a data-driven accordion is items[].hasSwitch.
    density string compact, regular, spacious regular No -
    items array - - No An array of accordion items.
    isMultiple boolean - false No If true, multiple accordion items can be expanded at the same time.