Skip to Content

PanelGroup

Resizable group with automatic accessible separators and independent nested groups. Shares are percentages. Only the outer group casts a shadow. Optional storage is local and versioned.

Использование

Документ

Рабочая область

Ориентация

Первый
Второй
Первый
Второй

Состояния

Первый
Второй

API

ПропТипПо умолчаниюОписание
orientation"horizontal" | "vertical"horizontal—
layoutreadonly number[]—Percentages in child order; shares sum to 100 and obey each panel's min/max.
defaultLayoutreadonly number[]——
onLayoutChange(layout: number[]) => void——
onResizeStart(layout: number[]) => void——
onResizeEnd(layout: number[]) => void—Called at commit; cancellation restores the starting layout without a commit.
resizablebooleanRender interactive separators automatically.
disabledboolean—
storageKeystring—Optional, versioned localStorage persistence for uncontrolled groups. No storage by default.
Last updated on