43 Pro components and page blocks

Get Pro

Two-level Sidebar

Pro

Preview

Customize

Panel width232px

Usage

import { DualSidebar } from "@/components/uibrik/dual-sidebar/dual-sidebar";

<DualSidebar />

Installation

Pro

Two-level Sidebar is a Pro component

Sign in to see the source, or install it with a license key. The live preview and props above are free to explore.

Install with a key

  1. Add the Pro registry to components.json:
    components.json
    {
      "registries": {
        "@uibrik-pro": {
          "url": "https://uibrik.com/r/pro/{name}.json",
          "headers": { "Authorization": "Bearer ${UIBRIK_LICENSE}" }
        }
      }
    }
  2. Put your key in .env.local and add that file to .gitignore:
    .env.local
    UIBRIK_LICENSE=your-license-key
  3. Install it:
    Terminal
    npx shadcn@latest add @uibrik-pro/dual-sidebar

Props

DualSidebar
defaultCollapsed
Type boolean
false
Page panel folded away at first, leaving the rail. When unset, it starts folded on phones and open on larger screens.
shortcut
Type boolean
true
Toggle the page panel with ⌘B / Ctrl+B.
panelWidth
Type number
232
Width of the page panel.
sections
Type { label; icon; groups }[]
Home, Projects, Analytics, Settings
The rail's sections, each with its own page groups.
user
Type { name; email? }
–
Account shown at the bottom of the rail.
logo
Type ReactNode
–
Logo at the top of the rail.
onNavigate
Type (section, page) => void
–
Called when a page is chosen.
collapsed / onCollapsedChange
Type boolean / (collapsed) => void
–
Panel folded state, controlled.
className
Type string
–
Classes for the sidebar.