Sidebar

A side navigation panel with groups and menu items.

components/ui/sidebar.tsx
Inventory

Installation

npx betterone-ds add sidebar

Props

PropTypeDefault
Sidebar collapsible"offcanvas" | "icon" | "none""offcanvas"
Sidebar side"left" | "right"

Accessibility

  • Wrap the sidebar in a nav landmark. The collapsed icon mode needs tooltips.