@fragiola/tree-react · @fragiola/tree-vue · @fragiola/tree-angular
A tree view that brings the behaviour, and none of the looks.
File explorers, outlines, navigation, nested settings and permission pickers: selection, checkboxes, the WAI-ARIA keyboard model, inline rename, drag and drop and async children. It ships the behaviour and the accessibility. Every pixel is yours.
Not on npm yet
The packages are not published on npm yet: these pages describe the upcoming first release.
Behaviour
Expand and collapse, single and multiple selection, tri-state checkboxes, inline rename, Pointer Events drag and drop with a keyboard drag, and children loaded on demand.
Accessibility
The WAI-ARIA APG tree view: roles, levels, positions, the roving tab stop, type-ahead and a live region whose words are yours.
A typed JSON model
The tree is data, typed by your registry: load it, save it, and veto or rewrite every command with middleware, from a click or from an assistant.
Primitives
Root, Items, Item, ItemContent, Group, Toggle, Checkbox… each renders only what you give it, with render instead of asChild. You own the recursion.
What it never ships
CSSIconsTextRendered menusA design system
The state is exposed as data-* attributes and ARIA, so any styling solution works: Tailwind, plain CSS, CSS modules, CSS-in-JS. The examples use Fragiola UI and its palettes.