Skip to content
A

allotment

React split-pane component

by johnwalleyFree

#238in UI Libraries
0In stores

Description

Allotment is a React component for resizable split panes, derived from the split view code in VS Code. You place panes inside an Allotment e…

Highlights

  • Resizable split panes from VS Code's code
  • Declarative panes from React children
  • Min, max, preferred and snap sizes
  • Nested layouts
  • TypeScript types and a ref handle

Ratings & Reviews

No ratings yet

Be the first to rate allotment.

People also visit

R

react-split-pane

React split-pane component

UI Libraries
Launch
R

@rexxars/react-split-pane

React split-pane component

UI Libraries
Launch
G

@gfazioli/mantine-split-pane

A Mantine 9 React component for resizable split pane layouts

UI Libraries
Launch
K

@kadira/react-split-pane

React split-pane component

UI Libraries
Launch
S

splitpanes

A Vue JS reliable, simple and touch-ready panes splitter / resizer

UI Libraries
Launch
R

react-resizable-and-movable

Resizable and movable component for React

UI Libraries
Launch

allotment FAQ

What is Allotment?

A React component for resizable split panes, based on the split view code from VS Code.

Which React versions does it support?

React 17, 18 and 19, according to the site.

Why does nothing show up?

Check that the parent element has a height, since Allotment fills its parent and has no height of its own, and that the stylesheet is imported.

How do I stop a pane from being resized?

Set minSize and maxSize to the same value.

Can it be used with Next.js?

Yes. The FAQ says to render it on the client only, and the docs cover server rendering.

How do I let users drag a pane closed?

Set snap on the pane and give it a minSize. It snaps closed when it is dragged below half that size.

What are the best allotment alternatives?

Popular alternatives to allotment include react-split-pane, @rexxars/react-split-pane and @gfazioli/mantine-split-pane. See all allotment alternatives

Developer Stuff

Badges