Sidebar Section

Sidebar section that groups nav items under an optional small uppercase heading with tight spacing. Stack several inside the Sidebar to organize app navigation.

src/registry/ui/sidebar-section.tsx/r/sidebar-section.json

Installation#

bash
npx shadcn@latest add @minidev/sidebar-section

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/sidebar-section.json

Usage#

tsx
import { SidebarSection } from "@/components/ui/sidebar-section"

export function Example() {
  return <SidebarSection />
}

API reference#

SidebarSection props
PropTypeDefault
titlestring-
childrenReact.ReactNode-
classNamestring-
All navigation components

Learn more