Skip to main content
Version: 57.2.0

Sidebar navigation (non-expo)

Standalone sidebar panel without expo-router dependency. Renders a collapsible icon rail on web that expands on hover, and a hamburger-triggered slide-in drawer on mobile. Use this when you need sidebar navigation outside of an expo-router layout context.

Package: @terreno/ui
Categories: Component
Props interface: SidebarNavigationPanelProps
Story source: demo/stories/Sidebarnavigation(non-expo).stories.tsx

Live demo

Props

PropTypeRequiredDescription
bottomItemsarrayYesNavigation items displayed at the bottom of the sidebar.
childrenReactNodeYesMain content rendered beside (web) or behind (mobile) the sidebar.
onNavigatereflectionYesCalled when a navigation item is pressed.
topItemsarrayYesNavigation items displayed at the top of the sidebar.
activeRoutestringThe currently active route, used to highlight the matching item.
isOpenbooleanControlled open state. When provided, the panel hides its internal hamburger button and defers open/close to the caller.
itemStyleStylePropAdditional styles applied to each navigation item.
onOpenChangereflectionCalled when the panel requests an open or close (controlled mode only).
panelStyleStylePropAdditional styles applied to the sidebar panel container.