UNPKG

react-drag-resizable

Version:

React component, which can be used to drag and resize, with location limits

48 lines (27 loc) 1.45 kB
# 使用说明 [![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/18888628835/react-drag-resizable#使用说明) ![standard-readme compliant](https://img.shields.io/github/workflow/status/18888628835/react-drag-resizable/github%20pages) ![standard-readme compliant](https://img.shields.io/npm/l/react-drag-resizable) ![standard-readme compliant](https://img.shields.io/npm/v/react-drag-resizable) 这是一个 React 组件,我们能够用它实现拖拽、放大、缩小,限制移动位置、辅助线、吸附效果等功能。 使用方法非常简单!!试试吧!! React component that allows you to drag and drop, zoom in and out, restrict movement positions, guides, adsorption, and more. It's easy!! Try it!! See the docs, tutorials and examples on the website: [react-drag-resizable-docs](https://18888628835.github.io/react-drag-resizable/) ## Install ```bash npm install react-drag-resizable --save ``` or ```bash yarn add react-drag-resizable ``` ## Usage ```js import { DragResizableBox } from 'react-drag-resizable'; ``` ## Maintainers [@qiuyanxi](https://github.com/18888628835) ## Contributing Feel free to dive in! Open an issue or submit PRs. 非常欢迎你的加入!提一个 [Issue](https://github.com/18888628835/react-drag-resizable/issues) 或者提交一个 Pull Request。 ## License MIT © qiuyanxi