Props
Name
Description
Type
Default
Nameactive
Description

If the accordion item should be opened by default

Typeboolean
Defaultfalse
NameautoHeight
Description

If expanded height should be automatically calculated. If set, the --sc-accordion-item-body-max-height CSS variable will be set automatically to the content height

Typeboolean
Defaulttrue
Nameheading
Description

Heading text. This will be overwritten by heading slot

Typestring
Defaultnull
NameheadingTag
Description

The HTML tag to be applied to the heading text. This will be overwritten by heading slot

Typestring
Default'h3'
Events
Event
Description
Event detail
Eventclosed
Description

Emitted when accordion item has closed

Event detailany
Eventclosing
Description

Emitted when accordion item started closing

Event detailany
Eventopened
Description

Emitted when accordion item has opened

Event detailany
Eventopening
Description

Emitted when accordion item started opening

Event detailany

Comments

Leave your thoughts here and it becomes a GitHub issue! Thanks to the magic of Utterances