1.1.5 • Published 11 months ago

@nui-react/tree-view v1.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

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

PropTypeDescriptionValue
headerstringRequired.text
childrenReactNodeOptional.<TreeItemContainer>, <CirclePointer/>
themestringOptional.dark or light. (Default is dark)

<TreeItemContainer>

PropTypeDescriptionValue
childrenReactNodeRequired.<TreeItem>, <TreeExpander> or any ReactNode

<TreeItem>

PropTypeDescriptionValue
titlestringRequired.text
childrenReactNodeOptional.<TreeText> , <TreeBadge> or any ReactNode
directionstringOptional.col or row. (Default is row)
bgGradientSizenumberOptional.any number between 0-100 (Default is 100)
titleWidthnumberOptional.any number between 10-100

<TreeExpander>

PropTypeDescriptionValue
headerstringRequired.text
childrenReactNodeRequired.any ReactNode
expandedbooleanOptional.true or false. (Default is false)
logostringOptional.image URL or react image component
subHeaderstringOptional.text
descstringOptional.text
linkstringOptional.URL
sublinkstringOptional.URL
descLinkstringOptional.URL

<TreeHeader>

PropTypeDescriptionValue
headerstringRequired.text
logostringOptional.image URL or react image component
subHeaderstringOptional.text
descstringOptional.text
linkstringOptional.URL
sublinkstringOptional.URL
descLinkstringOptional.URL
headerVarientstringOptional.h1, h2, h3, h4, h5, h6 or p. (Default is h1)
subHeaderVarientstringOptional.h1, h2, h3, h4, h5, h6 or p. (Default is h4)
descVarientstringOptional.h1, h2, h3, h4, h5, h6 or p. (Default is p)
headerColorstringOptional.white, black, primary, secondary, success, error, info , warning or mute. (Default is primary)
subHeaderColorstringOptional.white, black, primary, secondary, success, error, info , warning or mute. (Default is white)
descColorstringOptional.white, black, primary, secondary, success, error, info , warning or mute . (Default is mute)

<TreeText>

PropTypeDescriptionValue
textstringRequired.text
varientstringOptional.h1, h2, h3, h4, h5, h6 or p. (Default is p)
colorstringOptional.white, black, primary, secondary, success, error, info , warning or mute. (Default is white)
classNamestringOptional.any

<TreeBadge>

PropTypeDescriptionValue
labelstringRequired.text
imgstringOptional.image URL or react image component

<TreeLink>

PropTypeDescriptionValue
hrefstringRequired.URL
targetstringOptional._blank, _self, _parent, or _top. (Default is _blank)
titlestringOptional.text
iconColorstringOptional.any color code
classNamestringOptional.any

<CirclePointer>

PropTypeDescriptionValue
headerstringRequired.text
showMainConnectorbooleanOptional.true or false. (Default is true)
setAsLastbooleanOptional.true or false. (Default is false)

<DownArrow>

PropTypeDescriptionValue
sizenumberOptional.any number more than 0 (Default is 10)
colorstringOptional.any Color Code (Default is #00f0ff)
classNamestringOptional.any

<LinkIcon>

PropTypeDescriptionValue
colorstringOptional.any Color Code (Default is #00f0ff)
classNamestringOptional.any

<TreeLiner>

PropTypeDescriptionValue
colorstringOptional.any Color Code (Default is rgba(0, 240, 255, 0.502))

Tech Stack

Client: React, Typescript, CSS

Author

License

MIT

1.1.1

12 months ago

1.1.0

12 months ago

1.1.5

11 months ago

1.1.4

11 months ago

1.1.3

11 months ago

1.1.2

11 months ago

1.0.0

1 year ago