components/bits/CollapsiblePanel#
CollapsiblePanel()#
A panel docked to the top or bottom edge of its container.
Now a naming shim over CollapsibleEdge, which is the same component with the
axis as a parameter. Kept so the existing call sites (and their
height/minHeight prop names) keep working; new code should reach for
CollapsibleEdge directly.
Parameters#
| Parameter | Type |
|---|---|
props |
CollapsiblePanelProps |
Returns#
Element
CollapsiblePanelProps#
Properties#
anchor?#
Which edge of the container the panel appears on
children#
Content to render inside the panel
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)")
headerContent?#
Custom header content (replaces default title)
height?#
Height of the panel when open (initial height if resizable)
hideHeader?#
Hide the header entirely
indicatorColor?#
Color of the indicator
maxHeight?#
Maximum height when resizable
minHeight?#
Minimum height when resizable
onResize?#
Callback when height changes (only when resizable)
Parameters#
| Parameter | Type |
|---|---|
height |
number |
Returns#
void
onToggle#
Callback when the panel should be toggled
Parameters#
| Parameter | Type |
|---|---|
open |
boolean |
Returns#
void
open#
Whether the panel is open
resizable?#
Enable resizing
showIndicator?#
Show a pulsing indicator on the toggle button
sx?#
Additional sx props for the container
title?#
Title shown in the panel header
toggleLabel?#
Accessible name for the toggle button.
toggleTooltip?#
Tooltip for the toggle button when closed
default#
Renames and re-exports CollapsiblePanel