ns-ui

Tree Hinge Fold

Tree view whose branches unfold like a carpenter's folding rule — each child group is a hinged segment that swings open around a visible pivot, rows unfolding in sequence, and snaps shut faster than it opens.

Use when expanding a branch should read as a physical unfolding, the child group swinging open around a visible pivot with rows unfolding in sequence and snapping shut faster than they open; pick tree-root-trace instead when the indent guides should be the animated element and the tree needs a continuous drawn connector, or tree-box-drawing when monospace connector glyphs are the medium itself.

Install

npx shadcn add https://design.helpmarq.com/r/tree-hinge-fold.json
  • tree
  • navigation
  • hierarchy
  • fold
  • hinge
  • keyboard

ns-ui / tree-hinge-fold — branches swing open on a hinge

src
components
button.tsx
dialog.tsx
tabs.tsx
index.ts
package.json
README.md

Props

PropTypeDefaultDescription
nodesRuleNode[]
defaultExpanded?string[][]ids expanded on first render
className?string