react-movable-resizable
TypeScript icon, indicating that this package has built-in type declarations

1.0.44 • Public • Published

react-movable-resizable

NPM JavaScript Style Guide

storybook

click here

Install

npm install --save react-movable-resizable
 

Usage

import * as React from 'react'
 
import ReactMovableResizable from 'react-movable-resizable'
 
class Example extends React.Component {
  render () {
    return (
      <ReactmovableResizable />
    )
  }
}

Props

 
 {
   useParentBounds: boolean | default: false,
   maxWidth: number,
   maxHeight: number,
   className: string,
   initialWidth: number  | default: 100,
   initialHeight: number | default: 100,
   children: React.ReactNode,
   hideHandlers: boolean | default: false,
   hideBorder: boolean | default: false,
   handlersColor: string | default: '#000',
   borderColor: string | default: '#000',
   gridBackground: boolean | default: false,
   onDrag: callback |() => {x, y, width, height, maxWidth, maxHeight, offsetTop,
   offsetBottom,
   offsetRight,
   offsetLeft}
 }
 

License

MIT © mulikaminker

Readme

Keywords

none

Package Sidebar

Install

npm i react-movable-resizable

Weekly Downloads

45

Version

1.0.44

License

MIT

Unpacked Size

168 kB

Total Files

22

Last publish

Collaborators

  • kamish