Accordion

Accordion

On this page

Anatomy

Accordion Anatomy
NameDescriptionRequired
HeadingAccordion heading allows users to select in any area to expand or open the contentYes
PanelHides and shows when user interacts with headingYes
Panel ContentConsist of text or custom where user has the ability to change into their local componentYes
HeadingHeading should be clean and when panel opens the content should be relevant to the heading labelYes
SubtextSubtext allows the user to add additional text to support the heading if neededOptional
IconA visual element to support the content. Icon is placed left of the heading. User can change the icons.Optional
Icon IndicatorUsed as a visual signifier to show active or inactive. Can be placed on the right by default, or on the far left by the icon.Yes
DividerUsed for making a group of accordions. Dividers separate the accordions visuallyYes
ButtonButton allows users to expand or open the contentYes

States

Accordion States
StateDescription
DefaultUsers can select any area of the container to open or expand for more content. 
HoverBackground color change indicates a user that the option is selectable.
PressedBackground color change indicates to a user that the option has been selected.
FocusFocus lets the user know which element they are currently on.

Questions?

Connect with the DLS Team on Slack or by email.

Resources

Check out additional resources.