# react-draggable-lite

Latest version **1.0.0** (published 2017-01-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-draggable-lite
pnpm add react-draggable-lite
yarn add react-draggable-lite
bun add react-draggable-lite
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-01-02 |
| First published | 2017-01-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | newyork.anthonyng |
| Keywords | react, draggable, lite |

## Links

- npm: https://www.npmjs.com/package/react-draggable-lite
- Repository: https://github.com/newyork-anthonyng/react-draggable-lite
- Homepage: https://github.com/newyork-anthonyng/react-draggable-lite#readme
- Issues: https://github.com/newyork-anthonyng/react-draggable-lite/issues
- npm.io page: https://npm.io/package/react-draggable-lite

## Dependencies (2)

- [react](https://npm.io/package/react.md) ^15.4.1
- [react-dom](https://npm.io/package/react-dom.md) ^15.4.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2017-01-02

## README

# React-Draggable (lite)

[![Travis](https://img.shields.io/travis/newyork-anthonyng/react-draggable-lite.svg)](https://travis-ci.org/newyork-anthonyng/react-draggable-lite/)
[![Codecov](https://img.shields.io/codecov/c/github/newyork-anthonyng/react-draggable-lite.svg)](https://codecov.io/gh/newyork-anthonyng/react-draggable-lite)
[![npm](https://img.shields.io/npm/l/react-draggable-lite.svg)](https://spdx.org/licenses/MIT)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)](https://github.com/semantic-release/semantic-release)

A lightweight component that makes its children draggable.

## Installation
```
$ npm install --save react-draggable-lite
```

## Basic Usage
```javascript
import Draggable from 'react-draggable-lite';

...

<Draggable
  onDragStart={() => console.log('drag start')}
  onDragging={() => console.log('dragging')}
  onDragEnd={() => console.log('drag end')}
>
  <h1>Hello World</h1>
</Draggable>
```

# API
| Property | Description |
| -------- | ----------- |
| onDragStart | A function that is called when the Draggable element is first clicked on or touched (on `mousedown` or `touchstart`) |
| onDragging | A function that is called when dragging the Draggable element (on `mousemove` or `touchmove`) |
| onDragEnd | A function that is called when the dragging has stopped (on `mouseend` or `touchend`) |

---
_Source: https://npm.io/package/react-draggable-lite · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
