Skill Wiki v0.1.0
pattern @community/pattern-tx-dnd-kit-nested-tree

Tx Dnd Kit Nested Tree

dnd-kit nested tree drag with depth projection: flattens recursive tree to FlattenedItem[] (depth, parentId, id), projects drag depth from pointer transform.…

Skill
@community
Domain
frontend-design
Version
1.0.0
Quality
4.0
Edges
6 out · 3 in
Tokens
102/869/1692
$ prime install @community/pattern-tx-dnd-kit-nested-tree

Projection

Always in _index.xml · the agent never has to ask for this.

TxDndKitNestedTree [pattern] v1.0.0

dnd-kit nested tree drag with depth projection: flattens recursive tree to FlattenedItem[] (depth, parentId, id), projects drag depth from pointer transform.x divided by indentation (default 50px), clamps projected depth with getProjection() to prevent illegal nesting, removes descendants during drag and re-attaches via buildTree() on dragEnd.

Source

prime-system/examples/frontend-design/primes/compiled/@community/pattern-tx-dnd-kit-nested-tree/atom.yaml

Compiled at 2026-05-07