Componentnavigation1.6 KB gzipZero dependencies

Sidebar

Collapsible navigation sidebar drawer with notch cutouts.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add sidebar

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { Sidebar } from "@/components/ui/sidebar"; <Sidebar brand="BIGBULL ARENA" activeId="dashboard" />

Source code

sidebar.tsx + 2 helpers

Zero third-party dependencies (3 local files shown in tabs below).

tsxsidebar.tsx220 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils";import { registerEscapeLayer } from "./lib/focus-trap"; export interface SidebarItemData {  id: string;  label: string;  badge?: string;  active?: boolean;} export interface SidebarGroupData {  title: string;  items: SidebarItemData[];} 

Props

Interactive Prop Playground

Tweak parsed AST props below to generate ready-to-paste JSX.

tsx3 lines
import { Sidebar } from "@/components/ui/sidebar"; <Sidebar />
PropTypeDescription
brandstringConfigures brand. (Default: "BIGBULL ARENA")
ticketCodestringConfigures ticket code. (Default: "SEC-08")
footerLabelstringConfigures footer label. (Default: "System online")
showStatusDotbooleanToggles show status dot. (Default: true)
groupsSidebarGroupData[]Configures groups. (Default: DEFAULT_GROUPS)
collapsedbooleanToggles collapsed.
onCollapsedChange(collapsed: boolean) => voidCallback invoked on collapsed change.
mobileOpenbooleanToggles mobile open. (Default: false)
onMobileOpenChange(open: boolean) => voidCallback invoked on mobile open change.
activeIdstringConfigures active id.
onSelect(id: string) => voidCallback invoked on select.
classNamestringOptional Tailwind or custom CSS classes merged with component styles.