zalify-ui

Splitter

A layout component for creating resizable split panes and panels.

A
B

React

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

React

Vertical

Use the orientation prop to create a vertical splitter.

A
B

React

Multiple

Here is an example with multiple panels.

A
B
C

React

Store

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

A
B

React

Props

Root

Panel

ResizeTrigger