BetaPublic beta — Read the release notes
Documentation

Resizable Panels

Drag-to-resize panel layout.

Package
@solidiom/resizable-panels
Version
0.0.1-next.0
Status
stable

Preview

Panel 1 — Drag the handle to resize
Panel 2 — This panel adjusts automatically

This preview uses documentation-only styling. Ship with one of the included recipe outputs (CSS, Tailwind, or UnoCSS) for production styles.

Drag-to-resize panel layout.

Usage

Compose PanelGroup, Panel, Handle.

import * as ResizablePanels from "@solidiom/resizable-panels"

;<ResizablePanels.PanelGroup>Resizable Panels content</ResizablePanels.PanelGroup>

Installation

Install the package with pnpm add @solidiom/resizable-panels. The package requires compatible solid-js and @solidjs/web peer dependencies.

Parts

Resizable Panels exposes 3 parts:

  • PanelGroupdata-part="panelgroup".
  • Paneldata-part="panel".
  • Handledata-part="handle".

Styling

Resizable Panels carries data-scope="resizable-panels" and data-part attributes on each part for CSS/recipe targeting. State attributes like data-state, data-disabled, and data-highlighted are exposed where applicable.

Keyboard & behavior

This primitive has no keyboard interaction. It renders content that does not independently receive focus or respond to key events.

Composition

Resizable Panels is designed to compose with other primitives. Its parts can be combined with Field, Button, or other primitives as needed.

SSR and hydration

Resizable Panels renders as semantic HTML during server rendering. Interactive behavior (keyboard handlers, state management) activates on hydration without layout shift.