# virtualized-tree-component

> A tiny react tree-component based on react-virtualized

Latest version **1.1.14** (published 2022-11-27) · ISC license · 0 weekly downloads

## Install

```sh
npm install virtualized-tree-component
pnpm add virtualized-tree-component
yarn add virtualized-tree-component
bun add virtualized-tree-component
```

## Health

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

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

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.14 |
| Published | 2022-11-27 |
| First published | 2022-11-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 1.2 MB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | ivan.gmorozov@gmail.com |
| Maintainers | xatabch |

## Links

- npm: https://www.npmjs.com/package/virtualized-tree-component
- Repository: https://github.com/Xatabch/tree-component
- Homepage: https://github.com/Xatabch/tree-component#readme
- Issues: https://github.com/Xatabch/tree-component/issues
- npm.io page: https://npm.io/package/virtualized-tree-component

## Dependencies (3)

- [lodash](https://npm.io/package/lodash.md) 4.17.21
- [classnames](https://npm.io/package/classnames.md) 2.3.2
- [react-virtualized](https://npm.io/package/react-virtualized.md) 9.22.3

## Recent versions

- 1.1.14 (latest) — 2022-11-27
- 1.1.13 — 2022-11-27
- 1.1.12 — 2022-11-27
- 1.1.11 — 2022-11-27
- 1.1.10 — 2022-11-27
- 1.1.9 — 2022-11-27
- 1.1.8 — 2022-11-27
- 1.1.6 — 2022-11-27
- 1.1.5 — 2022-11-27
- 1.1.4 — 2022-11-27
- 1.1.3 — 2022-11-27
- 1.1.2 — 2022-11-27
- 1.1.1 — 2022-11-27
- 1.1.0 — 2022-11-27
- 1.0.22 — 2022-11-27
- … 22 more at https://npm.io/package/virtualized-tree-component/versions

## README

![workflow](https://github.com/xatabch/tree-component/actions/workflows/deployment.yml/badge.svg)

# Virtualized tree component

A tiny virtualized react tree component based on [react-virtualized](https://bvaughn.github.io/react-virtualized/#/components/List).

```jsx
import {TreeComponent} from "virtualized-tree-component";

<div>
    <TreeComponent nodes={nodes} />
</div>
```

## Showcases

See our [examples](/docs/examples) and Showcase paragraph for url.
- [Big tree(~100k elements)](/docs/examples/cra)

## Install

```bash
npm install virtualized-tree-component
```

# Nodes and Tree interfaces
```tsx
export interface Node {
    id: NodeId;
    name: string;
    children?: Node[];
    expanded?: boolean;
}

export type Tree = Node[];
```

## Usage

Render with default renderer
```jsx
<div>
    <TreeComponent nodes={Nodes} />
</div>
```

Add custom nodes render
```jsx
<div>
    <TreeComponent nodes={Nodes} NodeRenderer={
        (node) => <CustomRenderNode node={node} />
    }/>
</div>
```

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