Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ephraimduncan/blocks/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Sidebar blocks provide comprehensive navigation layouts for your application. From collapsible sections to floating sidebars and double-sided layouts, these components offer flexible navigation patterns for different application structures.Available Blocks
Sidebar Collapsible Sections
Navigation sidebar with expandable/collapsible menu sections
Sidebar Dashboard Inset
Inset sidebar design for dashboard layouts
Sidebar Dashboard Floating
Floating sidebar with modern card-like appearance
Sidebar Double-Sided Mail
Mail client layout with sidebars on both sides
Sidebar Double-Sided
Two-sidebar layout for complex navigation hierarchies
Sidebar Replacement
Dynamic sidebar that replaces content based on context
Sidebar Patterns
Collapsible Sections
Organize navigation items into expandable groups. Perfect for apps with many menu items.Inset Layout
Sidebar sits within the page container. Good for traditional dashboard designs.Floating Layout
Sidebar appears elevated above the page content. Modern, clean aesthetic.Double-Sided
Two sidebars for primary and secondary navigation. Ideal for complex applications.Replacement
Sidebar content changes dynamically. Great for contextual navigation.Use Cases
Dashboard Applications
Dashboard Applications
Use inset or floating sidebar layouts for admin dashboards, analytics platforms, or business applications.
Mail Clients
Mail Clients
Implement double-sided layouts with folder navigation on the left and message list in the center.
Documentation Sites
Documentation Sites
Use collapsible sections to organize documentation categories and subcategories.
Project Management
Project Management
Employ replacement sidebars that change based on selected project or workspace.
Social Platforms
Social Platforms
Implementation Example
Responsive Behavior
Handle mobile and desktop differently:On mobile devices, sidebars should typically appear as slide-out drawers or sheets that overlay the content. Always provide a clear way to close the mobile menu.
Best Practices
Navigation Design
- Logical Grouping: Organize items into related sections
- Clear Labels: Use concise, descriptive navigation labels
- Visual Hierarchy: Use indentation and typography to show structure
- Active States: Clearly indicate the current page
- Icon Consistency: Use icons consistently throughout
- Breadth vs Depth: Balance top-level items vs nested levels
Interaction Patterns
- Keyboard Navigation: Support arrow keys and keyboard shortcuts
- Collapse State: Remember collapsed/expanded states
- Smooth Transitions: Animate section opening/closing
- Click Targets: Ensure adequate touch target sizes (44x44px minimum)
- Hover States: Provide visual feedback on hover
Performance
- Lazy Load Sections: Load nested items only when sections expand
- Virtualize Long Lists: For sidebars with many items
- Optimize Animations: Use CSS transforms for better performance
- Debounce Search: If sidebar includes search functionality
Collapsible Sidebar
Implement a collapsible sidebar:Double-Sided Layout
For complex applications:Sidebar Widths
| Type | Width | Use Case |
|---|---|---|
| Collapsed | 64px (w-16) | Icon-only navigation |
| Narrow | 200px (w-50) | Compact navigation |
| Standard | 256px (w-64) | Default sidebar |
| Wide | 320px (w-80) | Rich content sidebars |
| Extra Wide | 384px (w-96) | Secondary content panels |
Active Link Highlighting
Search in Sidebar
Add search functionality:Accessibility
- Use semantic HTML (
<nav>,<aside>) - Provide ARIA labels for navigation regions
- Ensure keyboard navigation works
- Support focus management
- Announce dynamic content changes
- Maintain logical tab order
- Provide skip links
Related Components
- Command Menu - Alternative quick navigation
- Grid List - Content display in main area
- Tables - Tabular data alongside navigation