File tree

Progressive repository navigation with active file state.

0:00 / 0:01

Customize

4

Installation

pnpm odori add component file-tree

Edit the source in videos/components/file-tree/. Use odori diff to compare upstream changes and odori update to apply updates.

Timing contract

Use these durations and content limits when composing a scene. Run odori test to check your video.

Family
Developer proof
Recommended duration
150 frames · 5s
Minimum duration
60 frames · 2s
Entrance
50 frames
Exit
0 frames
Reduced motion
rows appear together
Requires
mono font
Content limits
nodes ≤ 10, nameLength ≤ 28

Props

PropTypeDefaultRequired
nodesFileTreeNode[]—Yes
activeIndexRow index that ends up highlighted.number0—
titlestring"videos/"—

Related components

All components