Skip to main content

Accordion

Demo

zeta-web v0.9.0
Web Components

The accordion is a control element comprising a vertically stacked list of items, such as labels or thumbnails. Each item can be "expanded" or "collapsed" to reveal the content associated with that item. There can be zero expanded items, exactly one, or more than one item expanded at a time, depending on the configuration.

Storybook

https://design.zebra.com/web/storybook/?path=/docs/components-accordion--docs

Slots

NameDescriptionType
defaultchildren should be zeta-accordion-item elements.text

Attributes

NameDescriptionTypeDefault
inCardDetermines if the ZetaAccordion should be in a card container.booleanfalse
expandMultipleDetermines if multiple items can be open at the same time.When false, only one accordion item can be open at a time.booleanfalse
selectMultipleDetermines if multiple accordion items can be selected.booleanfalse

Inherited Attributes

NameDescriptionTypeDefaultInherited From
roundedWhether the component is rounded or sharp.When true, rounded will set the border radius of the first child, and any children with class 'contourable-target' to --radius-minimal.Otherwise, this value will be --radius-none.boolean | undefinedtrueContourable

Figma

https://www.figma.com/design/JesXQFLaPJLc1BdBM4sisI/%F0%9F%A6%93-ZDS---Components?node-id=2315-72864