wu-react-component-draggable

react-component

Usage no npm install needed!

<script type="module">
  import wuReactComponentDraggable from 'https://cdn.skypack.dev/wu-react-component-draggable';
</script>

README

wu-react-component-draggable

Example


npm install
cd example

# run start
npm run start

安装

npm install wu-react-component-draggable

Usage

import Draggable from "wu-react-component-draggable";

const App = () => <Draggable />;

API

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