Introducing adaptive navigation
Prime your readers for how the sticky sidebar maps across desktop, tablet, and mobile breakpoints while keeping core navigation affordances consistent.
Adaptive navigation keeps contextual information within thumb reach. The sidebar collapses into a sheet on mobile while maintaining section affordances for assistive technology.
- Sticky ScrollArea on desktop with motion-optimized focus states.
- Sheet-based table of contents on mobile with accordion groupings.
- Smooth scrolling behaviour with reduced-motion fallbacks.
Use scroll margin utilities (`scroll-mt-24`) so headings are not obscured by sticky headers across inbound links.
Supporting resources
- Designing progressive disclosure in docs
Playbook for layering content without sacrificing scannability.
- Component usage checklist
Desktop behaviour
On large screens, the sidebar stays visible and highlights the current section using the scrollspy observer.
Pair the sticky sidebar with concise labels. Keep hierarchy shallow—we recommend at most two levels to prevent overwhelming the reader.
Readers should never lose track of where they are, even in 5,000+ word guides.— Docs leadership principles
Mobile contents drawer
On mobile the contents collapse into a sheet so thumb reach stays ergonomic.
The sheet uses accordion groupings for H2/H3 sections. Keep trigger labels short and describe the outcome, not the implementation detail.
- Tap the floating Contents button.
- Navigate through collapsible sections.
- Auto-scroll transitions respecting prefers-reduced-motion.