PanelGroup¶
Container for resizable panels (equal distribution by default).
Usage¶
ui.panelGroup(
{
id: "panel-group",
direction: "horizontal",
},
[
ui.resizablePanel({ defaultSize: 25 }, [Sidebar()]),
ui.resizablePanel({ defaultSize: 75, minSize: 50 }, [Content()]),
]
)
Props¶
| Prop | Type | Default | Description |
|---|---|---|---|
id |
string |
required | Group identifier |
direction |
"horizontal" \| "vertical" |
required | Layout direction |
Notes¶
PanelGroupdistributes space based onResizablePanelsize hints (with equal distribution when unspecified).ResizablePanelsize hints are interpreted as percentages of the group's width/height (based ondirection).- Use
SplitPanefor draggable resizing.