
Please see the website: https://dockview.dev
dockview is the JavaScript package. Using a framework? Install the
matching bindings instead: dockview-react,
dockview-vue or
dockview-angular.
Install from npm:
npm install dockview
Import the stylesheet:
@import 'dockview/dist/styles/dockview.css';
Create a dockview instance and pass a theme:
import { DockviewComponent, themeDark } from 'dockview';
const element = document.getElementById('app');
const dockview = new DockviewComponent(element, {
theme: themeDark,
createComponent: (options) => {
switch (options.name) {
case 'my-component':
return {
init: (params) => {
params.containerElement.textContent = 'Hello World';
},
};
}
},
});
dockview.addPanel({
id: 'panel_1',
component: 'my-component',
});
See the documentation for full examples.
Want to verify our builds? Go here.