Tree
@rc-component/tree
🌲 Tree view component for React
Component Libraries
react
react-component
react-tree
tree
@rc-component/tree
Component Libraries
javascript
npm
frontend
open source
Stars
1.3k
Weekly
784k
Open issues
166
Bundle
~25 kB
Installation
npm install @rc-component/treeCode example
import { Button } from "@rc-component/tree";
export function Example() {
return (
<div className="flex gap-2">
<Button>Primary</Button>
<Button variant="outline">Secondary</Button>
</div>
);
}Pros & cons
Pros
- Actively maintained by smith3816@gmail.com
- 784k weekly downloads. Battle tested
- First-class TypeScript definitions
- MIT licensed
Considerations
- Adds roughly ~25 kB to your bundle
- Needs client-only rendering in SSR frameworks
- Not supported in React Native
- 166 open issues on GitHub