react-stickers
Create draggable stickers with React
Last updated 3 years ago by perryratcliff .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install react-stickers 
SYNC missed versions from official npm registry.

 react-stickers

Create stickers that you can drag and drop with React.

Usage

npm install react-stickers --save
// require default component
import StickerPad from 'react-stickers';

// Pass an array of sticker objects to the react-stickers component
const stickers = [
    {img: 'https://www.teachok.com/logo.svg', x: 0, y: 0},
    {img: 'https://www.teachok.com/logo-dark.svg', x: 220, y: 220},
];

// Pass an optional options object to the react-stickers component
// Defaults shown:
const options = {
  useBoundary: true, // keep stickers inside the pad
  overflowHidden: true, // hide the edge of stickers when over edge
}

// Add react-stickers component to page
<StickerPad
    stickers={this.state.stickers}
    handleMoveSticker={Function}
/>
// ...

Current Tags

  • 1.0.17                                ...           latest (3 years ago)

18 Versions

  • 1.0.17                                ...           3 years ago
  • 1.0.16                                ...           3 years ago
  • 1.0.15                                ...           3 years ago
  • 1.0.14                                ...           3 years ago
  • 1.0.13                                ...           3 years ago
  • 1.0.12                                ...           3 years ago
  • 1.0.11                                ...           3 years ago
  • 1.0.10                                ...           3 years ago
  • 1.0.9                                ...           3 years ago
  • 1.0.8                                ...           3 years ago
  • 1.0.7                                ...           3 years ago
  • 1.0.6                                ...           3 years ago
  • 1.0.5                                ...           3 years ago
  • 1.0.4                                ...           3 years ago
  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 6
Dependencies (5)
Dev Dependencies (8)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |