0.0.9 • Published 2 years ago

react-use-canvas v0.0.9

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

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

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago