Documentation
Docs Shell
Provides a complete documentation layout with sidebar navigation, header, and content area. Built on Kookie UI's Shell component with documentation-specific defaults for a consistent docs experience out of the box.
Works with any React router by accepting custom link components and pathname for active state highlighting.
Installation
shellUsage
tsxProps
Examples
With Next.js
Integrate with Next.js router for active state highlighting:
tsxWith Header Actions
Add theme toggle, search, or other actions to the header:
tsxWith Icons in Navigation
Add icons to navigation items using HugeIcons:
tsxWith Sidebar Footer
Add custom footer content to the sidebar:
tsxFull Height Layout
Make the shell fill the viewport height:
tsxAccessibility
Docs Shell provides comprehensive accessibility features:
Keyboard Navigation
- Tab - Navigate through sidebar items and interactive elements
- Enter/Space - Activate navigation links
- Escape - Close mobile sidebar
Mobile Support
- Responsive sidebar that collapses on mobile
- Touch-friendly mobile trigger button
- Swipe gestures for sidebar (via Shell component)
Screen Readers
- Proper ARIA landmarks for navigation and main content
- Active navigation item announced
- Mobile trigger button announces sidebar state
Changelog
Added
- Complete documentation layout shell
- Sidebar with navigation and logo
- Header actions support
- Sidebar footer support
- Framework-agnostic router integration
- Resizable sidebar
- Mobile responsive design
© 2026 Kushagra Dhawan. Licensed under MIT. GitHub.