Skip to content
Menu

Layout

Drag split panels

Drag split panels: Panels divided by thin draggable handles that resize the adjacent panes in real time, arranged in a row or stacked.

Using Drag split panels

Drag split panels uses the wide preview frame with a light/dark theme setting.

Customize the preview

These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.

ControlTypeDefaultPreview limits
orientationselecthorizontalOptions: horizontal, vertical
showHandleGripbooleantrueNo additional limit in the metadata.
defaultSplitnumber50From 20 to 80; step 5
accentColorcolor#38BDF8No additional limit in the metadata.
Which frameworks are available for Drag split panels?

Drag split panels is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.

What does Drag split panels depend on?

The React metadata lists these npm dependencies beyond React: clsx, tailwind-merge.

What accessibility details are visible in Drag split panels?

The React source for Drag split panels includes: attributes and handlers (aria-hidden, aria-label, aria-orientation, aria-valuemax, aria-valuemin, aria-valuenow, onKeyDown, tabIndex); explicit roles (separator); key comparisons (End, Home). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

How does Drag split panels handle reduced motion?

The source scan found no direct useReducedMotion() or matchMedia preference read in Drag split panels's index.tsx. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.

Connect your agent

Related open components