byronwade/ui
Application UI

Overlays · Application UI

Sidebar

Collapsible application sidebar with provider, mobile sheet fallback, icon/offcanvas modes, menu groups, and ⌘/Ctrl+B shortcut.

@byronwade/foundation@byronwade/utils@byronwade/use-mobile@byronwade/button@byronwade/input@byronwade/separator@byronwade/sheet@byronwade/skeleton@byronwade/tooltip@base-ui/reactclass-variance-authority@phosphor-icons/react

Feature showcase

Installation

Features

  • 4 examples

    Default, Variants, Menu Buttons, Trading Desk.

API

Props

PropTypeDefaultDescription
variant"sidebar" | "floating" | "inset""sidebar"Sidebar chrome: flush edge, floating card, or inset with padded main.
collapsible"offcanvas" | "icon" | "none""offcanvas"Collapse behavior: slide off-screen, shrink to icons, or stay fixed width.
side"left" | "right""left"Which edge the sidebar anchors to.
containedbooleanfalseSidebarProvider: pin layout to the provider box instead of the viewport (docs previews, panels).

Dependencies

PackageKindDescription
@byronwade/foundationregistryInstalled through the byronwade/ui registry.
@byronwade/utilsregistryInstalled through the byronwade/ui registry.
@byronwade/use-mobileregistryInstalled through the byronwade/ui registry.
@byronwade/buttonregistryInstalled through the byronwade/ui registry.
@byronwade/inputregistryInstalled through the byronwade/ui registry.
@byronwade/separatorregistryInstalled through the byronwade/ui registry.
@byronwade/sheetregistryInstalled through the byronwade/ui registry.
@byronwade/skeletonregistryInstalled through the byronwade/ui registry.
@byronwade/tooltipregistryInstalled through the byronwade/ui registry.
@base-ui/reactnpmInstalled from npm.
class-variance-authoritynpmInstalled from npm.
@phosphor-icons/reactnpmInstalled from npm.

Source and related

FilePath
Componentregistry/ui/sidebar.tsx
Default examplecontent/examples/sidebar/default.tsx
Variants examplecontent/examples/sidebar/variants.tsx
Menu Buttons examplecontent/examples/sidebar/menu-buttons.tsx
Trading Desk examplecontent/examples/sidebar/trading-desk.tsx