Accordion

A component that allows users to collapse and expand a section of content.

Component checklist

Status

The status of the component

Ready for use!

Repository

A link to the repo where the component lives.

gux-accordion

Properties

Property Attribute Description Type Default
singleOpenSection single-open-section boolean false

Slots

Slot Description
collection of gux-accordion-section elements

Built with StencilJS


gux-accordion

Properties

Property Attribute Description Type Default
arrowPosition arrow-position Position of the arrow chevron icon. Position can be 'start' or 'end'. "end" | "start" 'end'
contentLayout content-layout The content layout used in the accordion section. 'text' layout provides default padding, 'custom' removes default padding. "custom" | "text" 'text'
disabled disabled boolean false
open open boolean false
reverseHeadings reverse-headings boolean false

Events

Event Description Type
guxclosed CustomEvent<void>
guxopened CustomEvent<void>

Slots

Slot Description
"header" Required slot for the heading
"icon" Optional slot for an icon
"subheader" Optional slot for a subheader *

Dependencies

Depends on

Graph


                                                
                                                graph TD;
                                                  gux-accordion-section --> gux-icon
                                                  style gux-accordion-section fill:#f9f,stroke:#333,stroke-width:4px

Built with StencilJS