Skip to content
Agents tracked: 440 Downloads (7d): 202M down 19.5% GitHub stars: 10.4M Releases (7d): 607 Agent status: 1 with issuesSince last limit reset: Claude 28d · Codex 0d Updated Oct 21, 2026

react-resizable-panels Examples You Can Edit and Run

5 small react-resizable-panels examples written by AgentGid from the official docs, one feature each. Every one runs in your browser: change the code and see the result at once, or describe a change and let AI rewrite it. The screenshots are taken from the same code by our server, which also checks that each example starts without errors.

react-resizable-panels: usage and stats 277 AI-built projects use it

Try them all in one place

import { Group, Panel, Separator } from 'react-resizable-panels';

const pane = (bg) => ({ height: '100%', background: bg, color: '#f1f1f1', display: 'grid',
  placeItems: 'center', font: '14px system-ui, sans-serif', borderRadius: 8 });
const css = '.bar{width:8px;background:#2c303a;border-radius:4px}.bar:hover{background:#3b82f6}';

export default function App() {
  return (
    <div style={{ width: 560, height: 300, margin: '32px auto', padding: 8, boxSizing: 'border-box', background: '#1b1d23', borderRadius: 12 }}>
      <style>{css}</style>
      <Group style={{ height: '100%' }}>
        <Panel id="files" defaultSize="25%">
          <div style={pane('#264653')}>Files</div>
        </Panel>
        <Separator className="bar" />
        <Panel id="editor" defaultSize="50%">
          <div style={pane('#2a3d66')}>Editor</div>
        </Panel>
        <Separator className="bar" />
        <Panel id="preview" defaultSize="25%">
          <div style={pane('#5b3758')}>Preview</div>
        </Panel>
      </Group>
    </div>
  );
}
Ctrl/⌘ + Enter runs

Free for signed-in members, with a daily limit. Describe the change in plain words; the new code runs only in your browser.

Drag either bar between the panels to resize them. Code written by AgentGid [1]. How it works, with a screenshot →

Checked Oct 12, 2026: each example starts without errors in Chromium with react-resizable-panels 4.14.4, react 19.3.0, react-dom 19.3.0. Needs WebGL.

Sources

  1. react-resizable-panels README (GitHub)

Explanations written by AgentGid from the official docs; the numbers in brackets point here. The code marked "written by AgentGid" is ours and free to copy.

Building something with react-resizable-panels? Ask AgentGid →