npm install
cd examples
# run start
npm run start
npm install wu-react-component-draggable
import Draggable from "wu-react-component-draggable";
const App = () => <Draggable />;
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 |