Skip to content

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

Notifications You must be signed in to change notification settings

linxiangjun/react-draggable-layer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

效果动画

react-draggable-layer

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

npm package npm size npm size

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

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

License

MIT, see the LICENSE file for detail.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published