navigationcontrollerz-switcher

Switcher

Tabbed content switcher with a sliding indicator, keyboard navigation, collapsible and manual modes, and animated panel transitions.

Notes

  • The tablist is resolved from [data-part="tablist"] or [role="tablist"], then .z-tab, .z-tab-alt, .z-subnav, or .z-nav, then the first layout child. Tabs are its direct children that are links, buttons, or role="tab" elements, or whose first direct child is one.
  • The sliding indicator is driven by the --z-tab-indicator-* variables on .z-tab and .z-tab-alt tablists (see the Tab component) and re-measures on resize.
  • Clicking a tab whose href is a real URL navigates normally when no panel containers are connected; hash links and connected panels always switch in place.