React bindings for dockview — zero dependency layout manager supporting tabs, groups, grids and splitviews

Please see the website: https://dockview.dev
Dockview has a peer dependency on react >= 16.8.0 and react-dom >= 16.8.0. Install from npm:
npm install dockview
Import the stylesheet:
@import 'dockview/dist/styles/dockview.css';
Apply a theme and render the component:
import { DockviewReact } from 'dockview';
const components = {
myComponent: (props) => <div>Hello World</div>,
};
function App() {
return (
<div className="dockview-theme-dark" style={{ height: '400px' }}>
<DockviewReact
components={components}
onReady={(event) => {
event.api.addPanel({
id: 'panel_1',
component: 'myComponent',
});
}}
/>
</div>
);
}
See the documentation for full examples.
Want to verify our builds? Go here.