Skip to main content
Our new developer certification is live!

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

PropTypeRequiredDefaultDescription
navigationNavCategory[]Yes-Docs navigation tree grouped by category and items.

Usage

import DocsNavSidebar from "@/components/molecules/DocsNavSidebar";

<DocsNavSidebar navigation={navigation} />

Features

  • Renders an Overview link to /docs.
  • Renders category links and nested page links.
  • Highlights the current active page.

Notes

  • Client component (usePathname).
  • Uses next/link for internal navigation.