Skip to content

HySidebarGroup

A titled section inside hy-sidebar. Gives nav items a labeled boundary (role="group" + aria-labelledby) without any visual chrome beyond a caption.

With collapsible, the caption becomes a button that toggles a local expanded/collapsed state for the group. Independent from the parent sidebar's collapsed state — when the parent is collapsed, the caption hides visually, but the accessible name remains.

Events

  • toggle - Only when collapsible. Detail: { expanded: boolean }

Slots

  • default - Items to group.

Built with Lit. Documented with VitePress.