Usage
Resizable Handle belongs between two direct panels in a Resizable group. The group supplies orientation, controlled panel references, constraints, and current percentage values.
import "@nordhealth/components/lib/ResizableHandle"
Composition
Resizable Handle is the separator between two adjacent direct Resizable Panels. It receives orientation, panel identities, constraints, and current values from the parent group, and updates that shared layout rather than owning either panel's size.
Examples
Interaction
Pointer dragging uses capture so resizing continues outside the visible track. Orientation-appropriate Arrow keys resize by the group’s step, Shift plus Arrow uses the large step, Home and End move to feasible boundaries, and Enter toggles the primary collapsible panel. Add with-handle for a visible grip, or set disabled to remove pointer and keyboard resizing.
Accessibility
The handle is a focusable ARIA window splitter with localized “Resize panels” naming, aria-controls, matching separator orientation, and feasible minimum/current/maximum values. Set label when the default does not identify the affected regions. The visual divider remains thin while a token-derived hit area provides a usable target; focus, forced-colors, RTL, and reduced-motion states remain visible.
API reference
ResizableHandle
Resizable Handle is an accessible window splitter placed between two direct Resizable Panels.
<nord-resizable-handle></nord-resizable-handle>Props
| Property | Attribute | Description | Type | Default |
|---|---|---|---|---|
disabled | disabled | Disables pointer and keyboard resizing and removes the handle from tab order. | boolean | false |
withHandle | with-handle | Shows a centered Nord-token grip in addition to the minimal divider. | boolean | false |
label | label | Accessible label. Defaults to a localized “Resize panels”. | string | '' |
CSS Properties
CSS Custom Properties provide more fine grain control over component presentation. We advise utilizing existing properties on the component before using these.
| Property | Description | Default |
|---|---|---|
--n-resizable-handle-color | Controls the divider color. | var(--n-color-border) |
--n-resizable-handle-active-color | Controls hover, focus, and drag color. | var(--n-color-accent) |
--n-resizable-handle-target-size | Controls the interactive hit target without changing the layout track. | calc(var(--n-space-xl) + var(--n-space-s)) |