The built-in tabs (spec/05 §5.6), "macaw.tabs": a container of one or more panes,
one shown at a time, of kind :container, :pure: the WAI-ARIA tabs pattern.
- parameters:
label(text,"Views"), the tab list's name;open(text,"", bindable), the pane shown, the first for""or a name of no pane; - declarations: no slots; the event
"open"with its default action settingopenfrom the event's value, so opening a tab is a view change with no wiring (spec/05 §5.3); it observes:activate; - panes: one or more; it shows the one
opennames, else the first; - markup: a named tab list of
role="tab"buttons, each controlling itsrole="tabpanel", the shown onearia-selectedand the list's one tab stop (roving focus: the otherstabindex="-1"); given a link for a tab (socketless, with the host's links), it is an<a href>to the view with it open; the shown panel holds its pane's markup, the others are empty andhidden; in:printand:neutralevery panel shows; - stylesheet:
stylesheet/0, served atstylesheet_path/0, its content address.
Summary
Functions
The tabs' one static stylesheet: the list, its tabs, the selected tab's mark and the 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 tabs' one static stylesheet: the list, its tabs, the selected tab's mark and the 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).