A React package that lays out resizable, draggable panels in a tiling arrangement similar to IDE or i3-style window management. End users can rearrange and resize without wiring custom event handlers.
Overview
react-mosaic is a React tiling window manager component for web applications. It presents a layout of panels that users can drag to rearrange, resize by grabbing split dividers, and split in two from toolbar controls.
Layouts use an n-ary tree model so a single split can hold more than two children. Tab groups are a first-class node type. You can run the layout in controlled mode with value and onChange, or uncontrolled with initialValue. Drag-and-drop uses react-dnd with HTML5 and touch backends.
The layout serializes as a plain JSON tree for storage in localStorage, URLs, or a backend. Theming works with or without Blueprint via default CSS and overridable CSS variables. Legacy binary tree layouts from older releases convert automatically at render time.
It targets current desktop and mobile browsers with touch drag support; Internet Explorer is not supported. The package ships documentation, a demo, API reference, and an agent skill for coding assistants.
Key features
- N-ary tree panel layouts
- First-class tab container nodes
- Controlled or uncontrolled layout state
- Drag-and-drop via react-dnd
- Default theme and CSS variables
- Legacy v6 tree auto-conversion
- Serializable JSON layout trees
- Optional Blueprint-integrated theme
Use cases
- IDE-like multi-panel web UIs
- Dashboards with user-rearrangeable tiles
- Admin consoles with persisted layouts
- Embedded analytics or ops panels