How to build an accessible Resizable in React

The divider is a focusable role="separator" with aria-orientation and aria-valuenow/min/max reflecting the percentage split; arrow keys nudge the ratio and Home/End snap to the configured bounds, matching the APG window-splitter pattern.

When to use a Resizable

When not to use it

Keyboard interactions

Role separator, verified at WCAG 2.2-AA.

Common mistakes

Avoid: <Resizable> wrapping three panes

Prefer: Nest two Resizable splitters so each divider controls exactly one boundary

A single separator can only mediate one boundary between two panes

Example

<Resizable>
  <Editor />
  <Preview />
</Resizable>

See the full Resizable reference →