Overview
Forms & inputs
Search for a command to run or a page to navigate to.
Sidebar is a collapsible application navigation panel with its own provider, trigger, and responsive behavior.
import { Sidebar } from "@strongtie/design-system/sidebar"Not installed yet? Add the package to your app:
This module exports the following components:
SidebarProviderSidebarSidebarTriggerSidebarRailSidebarInsetSidebarInputSidebarHeaderSidebarFooterSidebarSeparatorSidebarContentSidebarGroupSidebarGroupLabelSidebarGroupActionSidebarGroupContentSidebarMenuSidebarMenuItemSidebarMenuButtonSidebarMenuActionSidebarMenuBadgeSidebarMenuSkeletonSidebarMenuSubSidebarMenuSubItemSidebarMenuSubButton<SidebarProvider>| Prop | Type | Default | Description |
|---|---|---|---|
defaultOpen | boolean | - | |
onOpenChange | ((open: boolean) => void) | - | |
open | boolean | - |
<Sidebar>| Prop | Type | Default | Description |
|---|---|---|---|
collapsible | icon | none | offcanvas | - | |
side | left | right | - | |
variant | sidebar | floating | inset | - |
<SidebarTrigger>| Prop | Type | Default | Description |
|---|---|---|---|
size | "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | - | |
variant | "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | - |
<SidebarMenuButton>| Prop | Type | Default | Description |
|---|---|---|---|
isActive | boolean | - | |
size | "default" | "sm" | "lg" | null | - | |
tooltip | string | (TooltipContentProps & RefAttributes<HTMLDivElement>) | - | |
variant | "default" | "outline" | null | - |
<SidebarMenuAction>| Prop | Type | Default | Description |
|---|---|---|---|
showOnHover | boolean | - |
<SidebarMenuSkeleton>| Prop | Type | Default | Description |
|---|---|---|---|
showIcon | boolean | - |
<SidebarMenuSubButton>| Prop | Type | Default | Description |
|---|---|---|---|
isActive | boolean | - | |
size | sm | md | - |