HoopsAccordion
-
class
ui.accordion.HoopsAccordion() A custom web component that implements an accessible accordion using LitElement.
Examples
<hoops-accordion expanded><span slot="header">My Header</span><div slot="content">Content here</div></hoops-accordion>
Custom Element
hoops-accordionAttributes
expanded
Indicates whether the accordion is expandeddisabled
Indicates whether the accordion is disabledlevel
The aria-level attribute for the heading elementSlots
header
Slot for the accordion header contenttoolbar
Slot for the accordion header toolbaricon
Slot for the accordion icon, defaults to an arrow iconcontent
Slot for the accordion contentEvents
change
Dispatched when the accordion is toggledCSS Properties
–hoops-svg-accent-color
The accent color for the accordion–hoops-svg-fill-color
The fill color for the accordion icon–hoops-background
The background color for the accordion panel–hoops-neutral-background-50
The background color of accordion button–hoops-foreground
The foreground color for the accordion textCSS Parts
button
The button element that toggles the accordionpanel
The panel element that contains the accordion contentSince
2025.8.0
Constructors
-
ui.accordion.HoopsAccordion.constructor() - HoopsAccordion():
HoopsAccordionReturns:
HoopsAccordion
Properties
-
ui.accordion.HoopsAccordion.disabled - disabled: boolean
-
ui.accordion.HoopsAccordion.expanded - expanded: boolean
-
ui.accordion.HoopsAccordion.level optional
level: number