Elements

Reference

Splitter

Splitter, dressed in the paper-and-ink system: panels divide on a hairline and a small paper-seal thumb answers the hand. The parts — Root, Panel, ResizeTrigger, ResizeTriggerIndicator.

Root · Panel · ResizeTrigger · ResizeTriggerIndicator

#Panel

PropTypeDefaultDescription
idPanelId—

#ResizeTriggerIndicator

A styled part — no props of its own; it takes the anatomy's shared styling.

#ResizeTrigger

PropTypeDefaultDescription
disabledboolean | undefined—
idResizeTriggerId—

#Root

PropTypeDefaultDescription
defaultSizenumber[]The initial size of the panels when rendered. Use when you don't need to control the size of the panels.
idstringThe unique identifier of the machine.
idsPartial<{ root: string; resizeTrigger(id: string): string; label(id: string): string; panel(id: string | number): string; }>The ids of the elements in the splitter. Useful for composition.
keyboardResizeBynumberThe number of pixels to resize the panel by when the keyboard is used.
noncestringThe nonce for the injected splitter cursor stylesheet.
orientation'horizontal' | 'vertical'"horizontal"The orientation of the splitter. Can be horizontal or vertical
panelssplitter.PanelData[]The size constraints of the panels.
registrysplitter.SplitterRegistryThe splitter registry to use for multi-drag support.
sizenumber[]The controlled size data of the panels
EventPayload
resizedetails: ResizeDetails
update:sizesize: number[]
expanddetails: ExpandCollapseDetails
collapsedetails: ExpandCollapseDetails
resizeEnddetails: ResizeEndDetails
resizeStart—