Resizable

Accessible resizable panels with horizontal, vertical and right-to-left layouts.
Horizontal
One
Two
50% / 50%
Vertical
One
Two
50% / 50%
With handle
One
Two
50% / 50%
RTL
واحد
اثنان
50% / 50%
Nested panels
Library
Project
Media
Music
Exports
Editor
Name
Timeline
My edit
Disabled
One
Two
50% / 50%

Installation

Install the shared package once in your Exact app. This version is a beta.
bun add --exact @rightui/ui@0.4.0-beta.4
The Exact compiler requires Bun 1.4.2, regardless of which package manager installs the package.
Complete the font, app metadata and root provider setup (required for both installation methods).
Import
use ResizablePanelGroup, ResizablePanel, ResizableHandle from "@rightui/ui"

Usage

Compose ResizablePanelGroup, ResizablePanel and ResizableHandle. Set orientation to horizontal or vertical, dir to ltr or rtl, and withHandle to show or hide the grip. Pass the same orientation and dir to the group and its handle. Store the first panel percentage in state and update it with change. Each example has independent state.

Keyboard

Arrow keys resize by 1%; Shift + Arrow resizes by 10%. Horizontal arrows follow the visual direction in RTL. Home/End select the bounds, Enter restores the initial size and Escape cancels an active drag. A hidden grip remains draggable and keyboard accessible.

API Reference

Properties from the component source. State lives in your component; actions receive the updated value.
ResizablePanelGroup.id
string
ResizablePanelGroup.orientation
string
ResizablePanelGroup.dir
string
ResizablePanelGroup.value
number
ResizablePanel.id
string
ResizablePanel.label
string
ResizablePanel.minContentWidth
string
ResizableHandle.id
string
ResizableHandle.groupId
string
ResizableHandle.primaryId
string
ResizableHandle.label
string
ResizableHandle.orientation
string
ResizableHandle.dir
string
ResizableHandle.value
number
ResizableHandle.minimum
number
ResizableHandle.maximum
number
ResizableHandle.reset
number
ResizableHandle.withHandle
bool
ResizableHandle.disabled
bool
ResizableHandle.change
action