Park UI

Splitter

A layout component for creating resizable split panes and panels.

A
B

Installation

Usage

Examples

Collapsible

Set collapsible to true on a panel to make it collapsible. Use collapsedSize to control its collapsed size. This can be useful for building sidebar layouts.

A
B

Vertical

Use the orientation prop to create a vertical splitter.

A
B

Multiple

Here is an example with multiple panels.

A
B
C

Store

Use the useSplitter hook to control the state of the splitter programmatically.

A
B

Props

Root

Panel

ResizeTrigger