primitives icon indicating copy to clipboard operation
primitives copied to clipboard

[New Primitive] `Tree`

Open izhan opened this issue 3 years ago • 8 comments
trafficstars

Feature request

Overview

A tree view that helps with hierarchical items, e.g. folders within files.

Here are the W3 specs: https://www.w3.org/WAI/ARIA/apg/patterns/treeview/

Screen Shot 2022-06-08 at 7 38 42 PM

Examples in other libraries

A few open-source libraries out there, e.g. https://github.com/brimdata/react-arborist

Who does this impact? Who is this for?

Users that need to build a hierarchical list of things. E.g. Google Drive file viewer, Storybook, or even Radix's documentation website someday!

Additional context

izhan avatar Jun 09 '22 02:06 izhan

Here is an awesome treeview component. Maybe useful for reference.

https://github.com/minop1205/react-dnd-treeview

Ps: I am using react-arborist now which is highly customizable.

percy507 avatar Jul 05 '22 03:07 percy507

Geist Design System from Vercel has a good one.

https://geist-ui.dev/en-us/components/file-tree

davialcantaraa avatar Mar 31 '23 01:03 davialcantaraa

Another alternative that seem to have taken special care to implement the WAI-ARIA spec https://github.com/dgreene1/react-accessible-treeview

DreierF avatar Apr 04 '23 06:04 DreierF

Prefer to use MUI treeview for now. Hopefully there is a new component from radix

muhaimincs avatar Aug 03 '23 04:08 muhaimincs

Might be something to look at: https://master--5fc05e08a4a65d0021ae0bf2.chromatic.com/?path=/story/examples-tree-sortable--collapsible

vladgabriel avatar Sep 03 '23 12:09 vladgabriel

Can I take this up ?

happycoder0011 avatar Jan 14 '24 12:01 happycoder0011