Skip to content
LSD Framework
Components · primitive

Tree view. Branches that listen back.

A hierarchy primitive — folders, files, org charts, nested settings. Chevron rotation announces depth, arrow keys steer, and checkboxes propagate up and down the branch. Drag a node and the tree finds it a new home.

01

File tree · expand · select

Click a chevron to fold a branch. Use arrow keys for navigation; Enter selects.

Basic file tree

  • framework
    • components
      • ··tree-view
      • ··code-block
      • ··avatar-stack
  • ··README.md2.1k

With guide rails

  • surfaces
    • ··galaxy
    • ··nebula
    • constellation
      • ··orion
      • ··aurora
02

Multi-select · checkbox propagation

Checking a parent ticks every child; partial selections render indeterminate.

  • workspace
    • ··read
    • ··write
    • admin
      • ··invite
      • ··delete
03

Drag to reorder

Pointer-driven rearrange. Drop indicator hugs the receiving edge.

  • ·Hero block
  • ·Feature grid
  • ·Pricing tiers
  • ·Testimonial wall
  • ·Footer
04

Org chart · vertical

Same data model, top-down arrangement. For roles, reporting lines, dependency graphs.

platform
framework
tokens
motion
surfaces
builder
canvas
panels
runtime

Usage

View HTML
<div class="tv" role="tree">
  <ul role="group">
    <li role="treeitem" aria-expanded="true">
      <div class="tv-item" tabindex="0">
        <span class="tv-chev">›</span>
        <span class="tv-icon folder">▸</span>
        <span class="tv-label-text">folder</span>
      </div>
      <ul role="group">
        <li role="treeitem"><div class="tv-item">…</div></li>
      </ul>
    </li>
  </ul>
</div>