@iampava-devtools-ds/tree
TypeScript icon, indicating that this package has built-in type declarations

1.2.5 • Public • Published

@iampava-devtools-ds/tree

A versatile expanding Tree component, with full keyboard navigation following the Tree View Design Pattern.

Installation

npm i @iampava-devtools-ds/tree
# or with yarn
yarn add @iampava-devtools-ds/tree

Then to use the component in your code just import it!

import { Tree } from "@iampava-devtools-ds/tree";

Accessibility Approach

This component follows the DOM structure and interaction guidelines outlined in the Tree View Design Pattern.

Some of these resources were helpful for following the tree view interaction best practices.

Usage

The label can be a string or a React component.

<Tree label="Root">
  <Tree label="Branch One">
    <Tree label="Leaf One" />
    <Tree label="Leaf Two" />
  </Tree>
  <Tree label="Branch Two" />
  <Tree label="Branch Three" />
</Tree>

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Tyler Krupicka

💻 📖 🎨 🚇 💡 ⚠️

Adam Dierkens

📖 💡 ⚠️ 💻

Andrew Lisowski

📖 💡 💻

This project follows the all-contributors specification. Contributions of any kind welcome!

Readme

Keywords

none

Package Sidebar

Install

npm i @iampava-devtools-ds/tree

Weekly Downloads

1

Version

1.2.5

License

MIT

Unpacked Size

103 kB

Total Files

27

Last publish

Collaborators

  • iampava