Skip to content

Installation ​

Requirements ​

  • React ≥ 18 (the library uses useSyncExternalStore and other React 18 APIs)
  • A browser with CSS color-mix(): Chrome / Edge 111, Safari 16.2, Firefox 113 or later (all 2023).

npm ​

bash
npm install react-dockable-desktop

pnpm / yarn ​

bash
pnpm add react-dockable-desktop
yarn add react-dockable-desktop

CSS import ​

Add the stylesheet to your application entry point (main.tsx, index.js, etc.):

ts
import 'react-dockable-desktop/styles.css';

TypeScript ​

The library is written in TypeScript and ships full .d.ts type definitions. No @types package is needed.

Module formats ​

The package ships both ESM and CJS:

FieldFile
import (ESM)dist/index.js
require (CJS)dist/index.cjs
typesdist/index.d.ts
./styles.css (subpath export — import 'react-dockable-desktop/styles.css')dist/styles.css

Released under the MIT License.