Socket
Socket
Sign inDemoInstall

@devtools-ds/tree

Package Overview
Dependencies
19
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @devtools-ds/tree

A versatile expanding `Tree` component, with full keyboard navigation following the [Tree View Design Pattern](https://www.w3.org/TR/wai-aria-practices/examples/treeview/treeview-2/treeview-2a.html).


Version published
Weekly downloads
318K
decreased by-10.82%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

v0.131.0 (Tue Jan 26 2021)

🚀 Enhancement
  • @devtools-ds/console, @devtools-ds/dom-inspector, @devtools-ds/diagnostic, @devtools-ds/icon, @devtools-ds/navigation, @devtools-ds/node, @devtools-ds/object-inspector, @devtools-ds/table, @devtools-ds/tree, @devtools-ds/storybook-theme-addon
    • Navigation Accessibility #4 (@tylerkrupicka)
📝 Documentation
Authors: 1

Readme

Source

@devtools-ds/tree

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

Installation

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

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

import { Tree } from "@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

📖 💡 ⚠️ 💻

Tyler Krupicka

📖 💻 💡 ⚠️

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

FAQs

Last updated on 26 Jan 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc