1.0.1 • Published 4 years ago
wu-react-component-draggable v1.0.1
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 |