1.0.10 • Published 4 years ago

react-draggable-layer v1.0.10

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

效果动画

基于 TypeScript + React Hooks 开发的可拖拽弹层

Example

# install project packages
npm install

# install example packages
cd examples
npm install

# run start
npm run start

Installation

npm install --save @emotion/core react-draggable-layer

or

yarn add @emotion/core react-draggable-layer

Usage

import DraggableLayer from "react-draggable-layer";

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

API

namedescriptiontype
childrencustom draggable layer contentReactNode
titleNameThe draggable layer's titlestring
visibleWhether the draggable layer is visible or notboolean
onCloseSpecify a function that will be called when a user clicks close buttonfunction

License

MIT, see the LICENSE file for detail.

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago