DocsNavSidebar
Client-side sidebar navigation for /docs pages. It renders category links and document links, with active link highlighting based on the current pathname.
Props
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
navigation | NavCategory[] | Yes | - | Docs navigation tree grouped by category and items. |
Usage
import DocsNavSidebar from "@/components/molecules/DocsNavSidebar";
<DocsNavSidebar navigation={navigation} />Features
- Renders an
Overviewlink to/docs. - Renders category links and nested page links.
- Highlights the current active page.
Notes
- Client component (
usePathname). - Uses
next/linkfor internal navigation.