DocsLayout
The main layout component for documentation pages with sidebar navigation.Props
The page tree structure for navigation
Navigation bar configuration
enabled- Show/hide navigation (default:true)component- Replace default navigationtitle- Navigation titleurl- Title link URL (default:/)transparentMode- Transparent background mode:'always','top', or'none'children- Additional nav content
Sidebar configuration
enabled- Show/hide sidebar (default:true)component- Replace entire sidebarcomponents- Replace individual sidebar componentstabs- Sidebar tabs configuration or array of tabsbanner- Content above sidebar treefooter- Content below sidebar treecollapsible- Allow collapsing sidebar on desktop (default:true)defaultOpenLevel- Default folder open levelprefetch- Enable link prefetching
Tab display mode (default:
'auto')'top'- Show tabs at the top'auto'- Show tabs in sidebar dropdown
Search toggle configuration
enabled- Show/hide search (default:true)components.sm- Custom small screen search togglecomponents.lg- Custom large screen search toggle
Theme switcher configuration
enabled- Show/hide theme switch (default:true)component- Custom theme switch componentmode- Theme mode:'light-dark'or'light-dark-system'
Enable internationalization (default:
false)Navigation links array
GitHub repository URL (automatically adds GitHub icon link)
Props for the root container div
Usage
DocsPage
Page layout component for individual documentation pages.Props
Table of contents items
Extend page to fill all available space (default:
false)Breadcrumb configuration
enabled- Show/hide breadcrumb (default:true)component- Replace breadcrumb component
Footer navigation configuration
enabled- Show/hide footer (default:true)component- Replace footer componentchildren- Additional footer content
Desktop table of contents configuration
enabled- Show/hide TOCcomponent- Replace TOC componentheader- Content before TOCfooter- Content after TOCstyle- TOC style:'normal'or'clerk'(default:'normal')single- Single active heading mode
Mobile TOC popover configuration (same options as
tableOfContent except single)CSS class for the
#nd-page containerUsage
DocsBody
Adds typography styles to page content.Props
ExtendsHTMLAttributes<HTMLDivElement>
Usage
DocsTitle
Page title component with consistent styling.Props
ExtendsHTMLAttributes<HTMLHeadingElement>
DocsDescription
Page description component.Props
ExtendsHTMLAttributes<HTMLParagraphElement>
Usage
EditOnGitHub
Button component for editing page on GitHub.Props
ExtendsComponentProps<'a'>
Usage
HomeLayout
Layout for landing/home pages.Props
Navigation configuration (same as DocsLayout)Additional option:
enableHoverToOpen- Open mobile menu on hover
Navigation links
GitHub repository URL
Enable internationalization
Theme switcher configuration
Search toggle configuration
Usage
Notebook Layout
Alternative documentation layout with navbar-based navigation.Props
Similar toDocsLayout with additional options:
Tab display location (default:
'sidebar')'sidebar'- Show tabs in sidebar'navbar'- Show tabs in navbar
Navigation mode (default:
'auto')'top'- Always show in navbar'auto'- Show in sidebar on desktop, navbar on mobile