components/bits/CollapsibleSidebar#
CollapsibleSidebar()#
A sidebar docked to the left or right edge of its container.
Now a naming shim over CollapsibleEdge — see the note in
CollapsiblePanel.tsx. Kept so existing call sites and their
width/minWidth prop names keep working.
Parameters#
| Parameter | Type |
|---|---|
props |
CollapsibleSidebarProps |
Returns#
Element
CollapsibleSidebarProps#
Properties#
anchor?#
Which side of the screen the sidebar appears on
children#
Content to render inside the sidebar
handleIcon?#
Custom icon for the toggle handle (replaces default chevron)
handlePosition?#
Position of the toggle handle (CSS value, e.g., "50%", "100px", "calc(50% - 20px)")
headerActions?#
Extra actions rendered in the header alongside the toggle button
headerContent?#
Custom header content (replaces default title)
hideHandleWhenClosed?#
Hide the toggle handle when sidebar is closed (useful when using external toggle button)
hideHeader?#
Hide the header entirely
indicatorColor?#
Color of the indicator
maxWidth?#
Maximum width when resizable
minWidth?#
Minimum width when resizable
onResize?#
Callback when width changes (only when resizable)
Parameters#
| Parameter | Type |
|---|---|
width |
number |
Returns#
void
onToggle#
Callback when the sidebar should be toggled
Parameters#
| Parameter | Type |
|---|---|
open |
boolean |
Returns#
void
open#
Whether the sidebar is open
resizable?#
Enable resizing
showIndicator?#
Show a pulsing indicator on the toggle button (e.g., for active state)
sx?#
Additional sx props for the container
title?#
Title shown in the sidebar header
toggleLabel?#
Accessible name for the toggle button.
toggleTooltip?#
Tooltip for the toggle button when closed
width?#
Width of the sidebar when open (initial width if resizable)
default#
Renames and re-exports CollapsibleSidebar