navigationcontroller
z-switcherSwitcher
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, orrole="tab"elements, or whose first direct child is one. - The sliding indicator is driven by the
--z-tab-indicator-*variables on.z-taband.z-tab-alttablists (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.