# install project packages
npm install
# install example packages
cd examples
npm install
# run start
npm run startnpm install --save @emotion/core react-draggable-layeror
yarn add @emotion/core react-draggable-layerimport DraggableLayer from "react-draggable-layer";
const App = () => <DraggableLayer />;| name | description | type |
|---|---|---|
| children | custom draggable layer content | ReactNode |
| titleName | The draggable layer's title | string |
| visible | Whether the draggable layer is visible or not | boolean |
| style | wrapper style | object |
| onClose | Specify a function that will be called when a user clicks close button | function |
MIT, see the LICENSE file for detail.
