The built-in accordion (spec/05 §5.8), "macaw.accordion": a container of one or more
panes, one open at a time, of kind :container, :pure: the WAI-ARIA accordion
pattern.
- parameters:
label(text,"Sections"), its name;open(text,"", bindable), the pane open,""for none; - declarations: no slots; the event
"open"with its default action settingopenfrom the event's value (spec/05 §5.3); it observes:activate; - panes: one or more; it shows the one
opennames, else none; - markup: a named group; per pane a heading at the context's level holding a
button,
aria-expandedwhether its pane shows andaria-controlsits panel, emittingopenwith the pane when closed and""when open, or, given a link for it, an<a href>to that view; then its panel, a region named by the button, holding the pane's markup when shown and empty andhiddenwhen not. Buttons, not<details>, since a closed pane isn't rendered and the server must know which opens; in:printand:neutralevery panel shows; - stylesheet:
stylesheet/0, served atstylesheet_path/0, its content address.
Summary
Functions
The accordion's one static stylesheet: its headings, buttons and panels, every color a theme custom property with the default theme's value as its fallback. It loads and imports nothing.
The stylesheet's path, its content address (Macaw.Component.Stylesheet.path/1).
Functions
@spec stylesheet() :: String.t()
The accordion's one static stylesheet: its headings, buttons and panels, every color a theme custom property with the default theme's value as its fallback. It loads and imports nothing.
@spec stylesheet_path() :: String.t()
The stylesheet's path, its content address (Macaw.Component.Stylesheet.path/1).