Side navigation
Overview
A side navigation pattern that pairs <rh-drawer> with <rh-navigation-vertical> to create a sidebar for documentation sites and web applications. The drawer automatically responds to container width — appearing inline at wide widths and switching to overlay at narrow widths.
When to use
- Documentation sites with hierarchical page structures
- Web applications that need persistent navigation alongside content
- Any layout that benefits from a collapsible sidebar
How it works
Slot an <rh-navigation-vertical> into the drawer's default slot. Set container-type: inline-size on the layout wrapper so the drawer can detect container width and switch between inline and overlay modes automatically.