0.1.0 • Published 6 years ago

react-dragnow v0.1.0

Weekly downloads
12
License
Apache-2.0
Repository
github
Last release
6 years ago

react-dragnow

A simple component for making elements draggable, base on react-dnd.

Installing

npm install react-dragnow

Usage

import React from 'react'
import ReactDOM from 'react-dom'
import DragNow from 'react-dragnow'

const App = () => (
  <DragNow>
    <div style={{ width: 300, height: 300, background: '#4a79dc' }} />
  </DragNow>
)

ReactDOM.render(<App />, document.querySelector('body'))

snapshot

Edit nz1v07z7p

Props

  • initialLeft - Initial left value, default is 0.
  • initialTop - Initial top value, default is 0.
  • autoCenter - Default is true.
0.1.0

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago