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.
| Control | Type | Default | Preview limits |
|---|---|---|---|
orientation | select | horizontal | Options: horizontal, vertical |
showHandleGrip | boolean | true | No additional limit in the metadata. |
defaultSplit | number | 50 | From 20 to 80; step 5 |
accentColor | color | #38BDF8 | No 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.