shadcn.io is not affiliated with official shadcn/ui
Collapsible examples · Sidebar
Minimal Sidebar Group Collapsible for React
A sidebar group with a small uppercase Getting Started label that expands to three links.
A sidebar section label that folds its links away. Getting Started is a small uppercase trigger in the muted color, with a small chevron that turns over, and it opens to three links. Use it for docs navigation and settings sidebars.
Preview
Installation
FAQ
How is the Getting Started label styled?
The trigger is font-semibold text-xs uppercase tracking-wider in text-muted-foreground, and turns to the foreground color on hover.
Are Introduction, Installation, and Quick Start links?
Yes. They're anchors in a nav, with rounded-md px-2 py-1.5 text-sm and a muted hover fill. Point each href at its page.
What spaces the three rows?
The nav is mt-1 flex flex-col gap-1, so the links sit a step below the label with a small gap between them.
Related
- Nested Sidebar Items CollapsibleA two-level sidebar tree where
- Settings Menu CollapsibleA Preferences menu with a settings icon
- Sidebar with Counts CollapsibleAn Inbox sidebar item with a count badge
- Simple CollapsibleA ghost Toggle button with a chevron that
- Standard Accordion with ChevronA bordered accordion of three questions
- FAQ Item CollapsibleAn FAQ question with a plus that turns