Skip to content
coatx
Esc
↑↓navigate↵open⌘Jpreview
On this page

Sidebar

Collapsible application sidebar shell with header, groups, nested sub-menus, badges, and rail.

Overview
Click the rail button to collapse or expand the sidebar.

Usage

import {
  sidebar,
  sidebarContent,
  sidebarFooter,
  sidebarGroup,
  sidebarGroupLabel,
  sidebarHeader,
  sidebarInset,
  sidebarMenu,
  sidebarMenuBadge,
  sidebarMenuButton,
  sidebarMenuItem,
  sidebarProvider,
  sidebarTrigger,
} from "coatx/sidebar";

Exports (coatx/sidebar)

Export Description
sidebarProvider(options?) Root flex layout shell
sidebar(options?) Collapsible <aside> container (side: "left", "right"; variant: "sidebar", "floating", "inset"; collapsed)
sidebarHeader(options?) Top header region
sidebarContent(options?) Scrollable navigation body
sidebarFooter(options?) Bottom footer region
sidebarGroup(options?) Logical navigation section
sidebarGroupLabel(options?) Muted group label
sidebarMenu(options?) Vertical navigation <ul>
sidebarMenuItem(options?) Individual <li> item
sidebarMenuButton(options?) Interactive row (active, size: "sm", "default", "lg"; disabled)
sidebarMenuBadge(options?) Trailing tabular-nums badge
sidebarMenuSub(options?) Indented nested sub-menu list
sidebarSeparator(options?) Horizontal section divider
sidebarRail(options?) Edge resize / toggle rail
sidebarInset(options?) Adjacent main workspace canvas
sidebarTrigger(options?) Compact collapse toggle button
sidebarStyles Compiled StyleX style map

Was this page helpful?