# @mpkelly/react-tree

> Drag and drop tree for ReactJS

Latest version **0.0.14** (published 2020-06-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install @mpkelly/react-tree
pnpm add @mpkelly/react-tree
yarn add @mpkelly/react-tree
bun add @mpkelly/react-tree
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.14 |
| Published | 2020-06-26 |
| First published | 2020-06-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 42.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | mkelly |
| Maintainers | mpkelly |
| Keywords | react, typescript, tree, drag, drop, sorted |

## Links

- npm: https://www.npmjs.com/package/@mpkelly/react-tree
- Repository: https://github.com/mpkelly/react-tree
- Issues: https://github.com/mpkelly/react-tree/issues
- npm.io page: https://npm.io/package/@mpkelly/react-tree

## Dependencies (1)

- [scroll-into-view-if-needed](https://npm.io/package/scroll-into-view-if-needed.md) ^2.2.25

## 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

- 0.0.14 (latest) — 2020-06-26

## README

# react-tree

A React Tree with a sensible API that supports sorting, drag & drop, keyboard navigation, cut/copy and paste. You can also provide a Schema to control which moves are valid.

### Install

`npm i @mpkelly/react-tree`

### Demoes

- [Simple demo](https://codesandbox.io/s/fervent-wave-u7psb?file=/src/App.tsx)
- Lazy children demo
- [Journal example](https://github.com/mpkelly/Journal/blob/master/packages/journal/src/features/collections-tree/CollectionsTree.tsx)

Full readme [available on GitHub](https://github.com/mpkelly/react-tree/blob/master/README.md).

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