View Source MbtaMetro.Components.Accordion (MbtaMetro v0.0.27)
Summary
Functions
A disclosure widget that reveals or hides additional content.
Functions
A disclosure widget that reveals or hides additional content.
Attributes
id(:string) (required) - A unique identifier for the accordion.open(:boolean) - Whether the accordion starts open or closed. Defaults tofalse.
Slots
content(required)extra- Supplemental content to be shown below the accordion. Helpful for showing error states if form inputs are inside the component.heading(required) - The header of the component. Supports HTML markup.