# react-multi-style-dropdown-tree

> React Multi Style Dropdown Tree

Latest version **0.0.4** (published 2022-04-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-multi-style-dropdown-tree
pnpm add react-multi-style-dropdown-tree
yarn add react-multi-style-dropdown-tree
bun add react-multi-style-dropdown-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.4 |
| Published | 2022-04-22 |
| First published | 2022-04-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 65.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Deepak Sardana |
| Maintainers | deepaksardana |
| Keywords | react, dropdown, tree, tree dropdown, select, react select dropdown, horizontal tree dropdown, vertical tree dropdown |

## Links

- npm: https://www.npmjs.com/package/react-multi-style-dropdown-tree
- Repository: https://github.com/deepaksardana/react-tree-dropdown
- Homepage: https://github.com/deepaksardana/react-tree-dropdown#readme
- Issues: https://github.com/deepaksardana/react-tree-dropdown/issues
- npm.io page: https://npm.io/package/react-multi-style-dropdown-tree

## 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.4 (latest) — 2022-04-22
- 0.0.3 — 2022-04-21
- 0.0.2 — 2022-04-21
- 0.0.1 — 2022-04-21
- 0.0.0 — 2022-04-21

## README

Inspire from react-select and react-tree-dropdown.

Creating `react-multi-style-dropdown-tree` which will give two types for hirerarchy `Vertical` as well as `horizontal`.


>Demo:

- [Horizontal Style Tree Dropdown](https://codesandbox.io/s/react-tree-dropdown-horizontal-nnv5v0)

- [Vertical Style Tree Dropdown](https://codesandbox.io/s/react-tree-dropdown-vertical-eiyik9)

- [Render value outside the dropdown](https://codesandbox.io/s/react-tree-dropdown-outside-values-gfs3bs)

- [Adding custom props to search input](https://codesandbox.io/s/react-tree-dropdown-search-input-props-3g4xz1)

>Install

```
npm i react-multi-style-dropdown-tree
```


>USAGE

```
import ReactTreeDropdown, {
  OPTION_STYLE
} from "react-multi-style-dropdown-tree";
import "react-multi-style-dropdown-tree/lib/index.css";
import { OPTIONS } from "./DummyData";

export default function App() {
  const [selectedValues, setSelectedValues] = useState([]);

  return (
    <div className="App">
      <ReactTreeDropdown
        value={selectedValues}
        dropdownOptions={OPTIONS}
        handleValueChange={(selectedData) => {
          setSelectedValues(selectedData);
        }}
        optionStyle={OPTION_STYLE.VERTICAL}
        placeholder="Select Options"
      />
    </div>
  );
}
```

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