Skip to content
Hazine

Tree views

1 of 4 shipped. Each take is a different structure, and the note under its title says how.

  • tree views

    Baseline single-select tree: indent guides that darken beside the open file, a dot on a closed folder that holds it, and the full APG keyboard map with typeahead and asterisk.

    shadcn add @hazine/tree-view-file-explorer

    Depends on @hazine/use-controllable-state, lucide-react

Planned 3

  • Tree with inline rename and create

    Nodes are editable in place: a row switches between navigation mode and edit mode, validates duplicate and empty names inline, commits on Enter, cancels on Escape and returns focus to the treeitem.

  • Tree with counts and filter

    Adds live filtering that prunes and auto-expands the tree while preserving the user's manual expansion state when the filter is cleared, plus per-node descendant counts.

  • Lazy-loaded tree

    Children are unknown until requested: each branch has idle, loading, loaded, empty and error states, results are cached, and aria-busy is set on the group while loading.