Atelier UI

Search components…

Search components…

File Tree

Expandable file tree with arrow keys, Home/End, Enter and Space following the ARIA tree pattern.

Edit in sandbox

Copy a prompt for your AI coding tool with the source, dependencies and usage

Props

FileTreeProps

Also accepts all props of Omit<React.ComponentProps<"ul">, "children" | "onSelect">

PropTypeDefaultDescription
nodes* requiredFileTreeNode[]——
defaultExpandedstring[][]Paths ("src/app") that start expanded
onSelect(path: string) => void——

Install

$ npx shadcn@latest add https://chromotion.dev/r/file-tree.json

More like this