Refined UI

An opinionated, customizable superset of shadcn/ui

AgentsPrimitivesSkillsSkins
Guides
  • Overview
  • Get started
  • Shadcn compatibility
  • Architecture
  • Agent surface
Primitives
  • Accordion
  • Alert
  • Alert dialog
  • Aspect ratio
  • Autocomplete
  • Avatar
  • Badge
  • Button
  • Button group
  • Calendar
  • Card
  • Checkbox
  • Checkbox Group
  • Code
  • Code Diff
  • Collapsible
  • Color Picker
  • Combobox
  • Command
  • Date Picker
  • Dialog
  • Drawer
  • Empty
  • Field
  • Form
  • Gradient Editor
  • Hover card
  • Input
  • Input group
  • Input OTP
  • Item
  • Kbd
  • Markdown
  • Menu
  • Menubar
  • Meter
  • Native select
  • Navigation menu
  • Number Field
  • Pagination
  • Popover
  • Progress
  • Radio group
  • Resizable
  • Scroll area
  • Select
  • Sidebar
  • Skeleton
  • Slider
  • Spinner
  • Switch
  • Table
  • Table of contents
  • Tabs
  • Textarea
  • Toast
  • Toggle
  • Toolbar
  • Tooltip
  • Tree
  • Trigger Menu
  • Typography
Hooks
  • Use Chat Message
  • Use Chat Input
  • Use User Ask
  • Use Audio Recorder
  • Use Environment Variables
  • Use Copy To Clipboard
  • Use Tool Call
  • Use Sidebar Resize
Utils
  • cn
  • Skin
  • Contracts
  • Serialize
Extensions
  • Control Effects
  • View Transition
  • Send Aurora
  1. Primitives
  2. Sidebar
Primitives

Sidebar

Responsive app sidebar with collapse, mobile sheet, and keyboard toggle support.

Composition

The preferred shape for composing the installed primitive from its exported parts.

Application shell

Provider owns responsive state; Sidebar and SidebarInset stay as siblings.

SidebarProvider
├── Sidebar
│ ├── SidebarHeader
│ ├── SidebarContent
│ │ └── SidebarGroup
│ │ ├── SidebarGroupLabel
│ │ └── SidebarMenu
│ │ └── SidebarMenuItem
│ │ └── SidebarMenuButton
│ ├── SidebarFooter
│ └── SidebarRail
└── SidebarInset
└── SidebarTrigger

The refined source installs this primitive from src/registry/sources/refined/ui/sidebar.tsx. Install it on its own with the command above, or inspect the source below.

Registry command
npx shadcn@latest add http://127.0.0.1:3000/r/refined/sidebar.json
See registry manifest

Installed dependencies

Installed with this primitive because the slot depends on them; they are support files, not standalone sidebar items.

Mobile hooksrc/registry/hooks/use-mobile.tsHook
Sheet slotsrc/registry/sources/refined/ui/sheet.tsxSkin
Tooltip slotsrc/registry/sources/refined/ui/tooltip.tsxSkin

Raw code

Primary installed primitive source

Sidebar slot
src/registry/sources/refined/ui/sidebar.tsx

On this page

  • Preview
  • Composition
  • Installation
  • Dependencies
  • Source
Sidebarsidebar
AAcme
Workspace
Account
Floatingfloating
AAcme
Workspace
Account
Insetinset
AAcme
Workspace
Account