npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@nui-react/tree-view

v1.1.5

Published

nui-React (Next UI - React) is a customizable react UI tool

Readme

@nui-react/tree-view

Fully customized react component.

Installation

Install @nui-react/tree-view with npm, pnpm or yarn

  npm i @nui-react/tree-view
  pnpm add @nui-react/tree-view
  yarn add @nui-react/tree-view

Usage/Examples

import {
  TreeView,
  TreeItem,
  TreeItemContainer,
  TreeBadge,
} from "@nui-react/tree-view";

function App() {
  return (
    <TreeView header="my tree view">
      <TreeItemContainer>
        <TreeItem title="title 1">
          this is a react Tree View component
          <TreeBadge label="my badge" />
        </TreeItem>
      </TreeItemContainer>
    </TreeView>
  );
}

@nui-react/tree-view Sample UI

Components

<TreeView>

| Prop | Type | Description | Value | | :--------- | :---------- | :------------ | :------------------------------------------------ | | header | string | Required. | text | | children | ReactNode | Optional. | <TreeItemContainer>, <CirclePointer/> | | theme | string | Optional. | dark or light. (Default is dark) |

<TreeItemContainer>

| Prop | Type | Description | Value | | :--------- | :---------- | :------------ | :---------------------------------------------------------- | | children | ReactNode | Required. | <TreeItem>, <TreeExpander> or any ReactNode |

<TreeItem>

| Prop | Type | Description | Value | | :--------------- | :---------- | :------------ | :-------------------------------------------------------- | | title | string | Required. | text | | children | ReactNode | Optional. | <TreeText> , <TreeBadge> or any ReactNode | | direction | string | Optional. | col or row. (Default is row) | | bgGradientSize | number | Optional. | any number between 0-100 (Default is 100) | | titleWidth | number | Optional. | any number between 10-100 |

<TreeExpander>

| Prop | Type | Description | Value | | :---------- | :---------- | :------------ | :------------------------------------------------ | | header | string | Required. | text | | children | ReactNode | Required. | any ReactNode | | expanded | boolean | Optional. | true or false. (Default is false) | | logo | string | Optional. | image URL or react image component | | subHeader | string | Optional. | text | | desc | string | Optional. | text | | link | string | Optional. | URL | | sublink | string | Optional. | URL | | descLink | string | Optional. | URL |

<TreeHeader>

| Prop | Type | Description | Value | | :----------------- | :------- | :------------ | :------------------------------------------------------------------------------------------------------------------------------------------------------- | | header | string | Required. | text | | logo | string | Optional. | image URL or react image component | | subHeader | string | Optional. | text | | desc | string | Optional. | text | | link | string | Optional. | URL | | sublink | string | Optional. | URL | | descLink | string | Optional. | URL | | headerVarient | string | Optional. | h1, h2, h3, h4, h5, h6 or p. (Default is h1) | | subHeaderVarient | string | Optional. | h1, h2, h3, h4, h5, h6 or p. (Default is h4) | | descVarient | string | Optional. | h1, h2, h3, h4, h5, h6 or p. (Default is p) | | headerColor | string | Optional. | white, black, primary, secondary, success, error, info , warning or mute. (Default is primary) | | subHeaderColor | string | Optional. | white, black, primary, secondary, success, error, info , warning or mute. (Default is white) | | descColor | string | Optional. | white, black, primary, secondary, success, error, info , warning or mute . (Default is mute) |

<TreeText>

| Prop | Type | Description | Value | | :---------- | :------- | :------------ | :----------------------------------------------------------------------------------------------------------------------------------------------------- | | text | string | Required. | text | | varient | string | Optional. | h1, h2, h3, h4, h5, h6 or p. (Default is p) | | color | string | Optional. | white, black, primary, secondary, success, error, info , warning or mute. (Default is white) | | className | string | Optional. | any |

<TreeBadge>

| Prop | Type | Description | Value | | :------ | :------- | :------------ | :--------------------------------------------- | | label | string | Required. | text | | img | string | Optional. | image URL or react image component |

<TreeLink>

| Prop | Type | Description | Value | | :---------- | :------- | :------------ | :------------------------------------------------------------------------------- | | href | string | Required. | URL | | target | string | Optional. | _blank, _self, _parent, or _top. (Default is _blank) | | title | string | Optional. | text | | iconColor | string | Optional. | any color code | | className | string | Optional. | any |

<CirclePointer>

| Prop | Type | Description | Value | | :------------------ | :-------- | :------------ | :------------------------------------------------ | | header | string | Required. | text | | showMainConnector | boolean | Optional. | true or false. (Default is true) | | setAsLast | boolean | Optional. | true or false. (Default is false) |

<DownArrow>

| Prop | Type | Description | Value | | :---------- | :------- | :---------- | :----------------------------------------------- | | size | number | Optional. | any number more than 0 (Default is 10) | | color | string | Optional. | any Color Code (Default is #00f0ff) | | className | string | Optional. | any |

<LinkIcon>

| Prop | Type | Description | Value | | :---------- | :------- | :---------- | :-------------------------------------------- | | color | string | Optional. | any Color Code (Default is #00f0ff) | | className | string | Optional. | any |

<TreeLiner>

| Prop | Type | Description | Value | | :------ | :------- | :---------- | :------------------------------------------------------------- | | color | string | Optional. | any Color Code (Default is rgba(0, 240, 255, 0.502)) |

Tech Stack

Client: React, Typescript, CSS

Author

License

MIT