1.0.10 • Published 5 years ago

react-draggable-layer v1.0.10

Weekly downloads
2
License
MIT
Repository
github
Last release
5 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

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago