The side menu of an app: 236 px wide, or 64 px when collapsed, where each item keeps its icon and shows its
name in a tooltip on hover and on keyboard focus. The current item has aria-current="page". The caller keeps
whether it is collapsed (collapsed) and gets the press of the toggle in on_toggle; it is hidden on small
screens, where the app has its own navigation.
Summary
Functions
Attributes
id(:string) (required)label(:string) (required) - the name of the navigation, for assistive technology.collapsed(:boolean) - Defaults tofalse.on_toggle(:string) - the event of the button that collapses and opens it. Defaults tonil.toggle_label(:string) - what the toggle button does, read by assistive technology. Defaults tonil.class(:any) - Defaults tonil.target(:any) - aphx-target(a@myself) when used inside a LiveComponent. Defaults tonil.- Global attributes are accepted.
Slots
toggle_iconheader- the brand or the workspace, above the items.footer- what stays at the bottom: the person, a help link.item(required) - Accepts attributes:to(:string) (required)label(:string) (required)current(:boolean)count(:any)
icon- the icon of an item; gets%{label: item label}.