Skip to content

Resizable

Copy editable source into an initialized application:

Terminal window
pnpm dlx @simurgh-ui/cli add resizable

For package consumption, import from the component subpath and load its optional recipe CSS:

import {
ResizablePanelGroup,
ResizablePanel,
ResizableHandle,
} from '@simurgh-ui/react/resizable';
import '@simurgh-ui/styles/resizable.css';
import {
ResizablePanelGroup,
ResizablePanel,
ResizableHandle,
} from '@simurgh-ui/vue/resizable';
import '@simurgh-ui/styles/resizable.css';
import {
ResizablePanelGroupComponent,
ResizablePanelComponent,
ResizableHandleComponent,
} from '@simurgh-ui/angular/resizable';
import '@simurgh-ui/styles/resizable.css';

Omit the component stylesheet for fully headless styling. CLI-copied components use the local path written to simurgh.json and the copied application styles instead of these package imports.

Resizable groups coordinate adjacent panel percentages. Handles expose separator value semantics and support pointer dragging, Arrow keys in five-percent steps, and Home/End constraints.

The optional component stylesheet provides a complete default recipe, including visual hierarchy and interaction states. Consumers can override semantic tokens or omit the recipe.

Live component Resizable
Navigation
Content

The public component parts are listed in API surface below. Use only the parts needed by the example; compound components depend on their documented parent/child nesting.

This component exposes no public controlled/uncontrolled state pair. Configure it through the props, events, native attributes, or parent-owned state documented in the API tables.

Every handle needs an accessible label describing the panels it changes. Horizontal movement follows logical direction in RTL. Use orientation="vertical" for stacked panels and set meaningful minimums so important content cannot collapse.

<ResizablePanelGroup aria-label="Workspace panels">
<ResizablePanel defaultSize={35} minSize={20}>Navigation</ResizablePanel>
<ResizableHandle aria-label="Resize panels" />
<ResizablePanel defaultSize={65} minSize={30}>Content</ResizablePanel>
</ResizablePanelGroup>

These keys describe behavior implemented by the adapters. Native Tab, Enter, and Space behavior still applies to descendant links, buttons, and form controls unless the component overrides it.

Concern / keysBehavior
Focus entry and exit (Tab / Shift+Tab)Tab focuses each separator handle; Tab leaves after the final handle.
Navigation and activationArrows resize by step; Home/End move to minimum/maximum.
EscapeNot handled by the component.
RTL differencesHorizontal decrement/increment arrows reverse in RTL.
TypeaheadNot supported.

Preserve the documented composition and accessible names when wrapping or restyling this component. See accessibility and RTL guidance for keyboard, focus, labeling, and directionality requirements.

  • React exports: ResizablePanelGroup, ResizablePanel, ResizableHandle
  • Vue exports: ResizablePanelGroup, ResizablePanel, ResizableHandle
  • Angular exports: ResizablePanelGroupComponent, ResizablePanelComponent, ResizableHandleComponent

Import these public symbols from the component subpath shown in Installation. Framework-specific props, events, slots, directives, methods, defaults, and native-attribute behavior belong in the API tables on this page; use the linked source only to verify the current implementation.

React API reference

An inherited-attributes entry means the component accepts the complete named React native interface, including its event handlers and ARIA and data attributes. Remaining attributes are forwarded to the rendered element unless the component behavior described on this page overrides them.

Inherited attributes: HTMLAttributes<HTMLDivElement>.

PropTypeDefault / requirement
childrenReactNodeundefined
directionDirectionundefined
orientationOrientationundefined

Complete props type: ResizablePanelProps.

PropTypeDefault / requirement
_indexnumberundefined
childrenReactNodeundefined
defaultSizenumberundefined
maxSizenumberundefined
minSizenumberundefined

Complete props type: ResizableHandleProps.

PropTypeDefault / requirement
_boundarynumberundefined
childrenReactNodeundefined
Vue API reference

Boolean props without explicit defaults use Vue’s false default. Undeclared attributes follow the fallthrough behavior stated for each component.

Vue attribute fallthrough is enabled for the rendered root.

PropTypeDefault / requirement
orientationOrientation'horizontal'
directionDirection'ltr'

No emitted events.

Slots: default.

Exposed methods: none.

Vue attribute fallthrough is enabled for the rendered root.

PropTypeDefault / requirement
defaultSizenumber1
minSizenumber10
maxSizenumber90

No emitted events.

Slots: default.

Exposed methods: none.

Vue attribute fallthrough is enabled for the rendered root.

No declared props.

No emitted events.

Slots: default.

Exposed methods: none.

Angular API reference

Inputs and outputs use their public template names. Public methods are callable through a template reference or ViewChild. Native attributes apply to the documented template root or directive host; they are not automatically forwarded through component hosts.

Component selector: simurgh-resizable-panel-group. The template’s first native element is ng-content. Angular host bindings: { 'data-slot': 'resizable-panel-group', '[attr.data-orientation]': 'orientation', '[attr.dir]': 'direction', }.

InputTypeDefault / requirement
orientationOrientation'horizontal'
directionDirection'ltr'

No outputs.

Content projection: default.

Public method
register(panel: ResizablePanelComponent): void
configure(panel: ResizablePanelComponent, defaultSize: number, minSize: number, maxSize: number): void
unregister(panel: ResizablePanelComponent): void
panelIndex(panel: ResizablePanelComponent): number
normalize(): void
adjust(boundary: number, delta: number): void

Component selector: simurgh-resizable-panel. The template’s first native element is ng-content. Angular host bindings: { 'data-slot': 'resizable-panel' }.

InputTypeDefault / requirement
defaultSizenumber1
minSizenumber10
maxSizenumber90

No outputs.

Content projection: default.

No public methods.

Component selector: simurgh-resizable-handle. The template’s first native element is ng-content. Angular host bindings: { 'data-slot': 'resizable-handle', role: 'separator', tabindex: '0', }.

No inputs.

No outputs.

Content projection: default.

Public method
onKeydown(event: KeyboardEvent): void
onPointerdown(event: PointerEvent): void

Follow the framework example as a structural contract. Root components own shared state; parts that consume that state must stay under the root (or be attached to projected descendants in Angular). Parts described as conditional are optional until their corresponding interaction or semantic region is used. Do not render a state-consuming part by itself.

FrameworkRequired parent/child relationshipConditional partsSupporting types
ReactRender ResizablePanelGroup as the ancestor. Nest the listed parts inside that root so they can read its shared state/context.ResizablePanel, ResizableHandle are conditional parts: include only those needed by the documented anatomy. A trigger/control and its matching content/item are required when that interaction is used.None.
VueRender ResizablePanelGroup as the ancestor. Nest the listed parts inside that root so they can read its shared state/context.ResizablePanel, ResizableHandle are conditional parts: include only those needed by the documented anatomy. A trigger/control and its matching content/item are required when that interaction is used.None.
AngularCreate ResizablePanelGroupComponent first. Attach listed directives to elements inside its projected content; nested component parts must remain inside it.ResizablePanelComponent, ResizableHandleComponent are conditional parts: include only those needed by the documented anatomy. A trigger/control and its matching content/item are required when that interaction is used.None.

Accessible names, descriptions, and form labels remain required whenever the component’s purpose cannot otherwise be determined, even when the corresponding visual part is optional.

The adapters target the same user-visible behavior and accessibility contract. Their public shapes follow each framework’s conventions and are not expected to be symbol-for-symbol identical.

ConcernContract
Public compositionAll adapters export 3 public symbols, with framework-idiomatic names.
State and change eventsNo controlled state contract; use native attributes, inputs, or events documented above.
Children and contentReact uses children; Vue uses the slots listed above; Angular uses the documented content projection selectors.
Native attributesReact forwards the named native interface; Vue follows the stated fallthrough rule; Angular attributes apply to the component host unless an input, directive, or documented native root consumes them.
Imperative accessNo framework exposes an imperative handle for this component.

These differences are intentional adapter design. Behavioral or accessibility differences not stated on this page are parity defects rather than supported variations.

This component is not a form control and does not contribute a named value to FormData. Use it to structure or describe a form only when its purpose and accessibility guidance apply.

The table distinguishes component behavior from application-owned presentation. “Not supported” means there is no public state contract for that adapter; do not invent one with an undocumented attribute. Keep status and error messages accessible when they are rendered outside the component.

StateReactVueAngular
LoadingNot supported by this component API; handle this state in surrounding application UI.Not supported by this component API; handle this state in surrounding application UI.Not supported by this component API; handle this state in surrounding application UI.
EmptyNot supported by this component API; handle this state in surrounding application UI.Not supported by this component API; handle this state in surrounding application UI.Not supported by this component API; handle this state in surrounding application UI.
InvalidNot supported by this component API; handle this state in surrounding application UI.Not supported by this component API; handle this state in surrounding application UI.Not supported by this component API; handle this state in surrounding application UI.
Read-onlyNot supported by this component API; handle this state in surrounding application UI.Not supported by this component API; handle this state in surrounding application UI.Not supported by this component API; handle this state in surrounding application UI.
DisabledNot supported by this component API; handle this state in surrounding application UI.Not supported by this component API; handle this state in surrounding application UI.Not supported by this component API; handle this state in surrounding application UI.
ErrorNot supported by this component API; handle this state in surrounding application UI.Not supported by this component API; handle this state in surrounding application UI.Not supported by this component API; handle this state in surrounding application UI.
Styling contract

The selectors below are used by the published component recipe or emitted consistently by an adapter. Treat these as the supported styling surface. Element order, anonymous wrappers, and undocumented descendants are implementation details and should not be targeted.

SurfaceStable hooks
Recipe classesNo component-specific recipe class; this stylesheet currently imports shared tokens only.
Stable DOM parts[data-slot="resizable-handle"], [data-slot="resizable-panel"], [data-slot="resizable-panel-group"]
Stable data attributes[data-orientation], [data-slot]
ARIA/state selectors used by the recipeNo ARIA state selector is used by this recipe.
CSS custom properties consumed--simurgh-border, --simurgh-muted-foreground, --simurgh-ring

Prefer a semantic token override for theme-wide changes. Use the listed class or part selectors for a component-scoped override. When omitting recipe CSS, preserve state attributes and ARIA semantics even if your replacement styles use different selectors.

Load the optional component stylesheet for the default recipe, override semantic tokens for broad theme changes, or omit the recipe CSS for headless styling. See theming and styling hooks for import order, selectors, dark mode, RTL, and reduced-motion guidance.

Last verified on 2026-08-13 against Simurgh registry 0.1.1.