Browse folders & files from a list of paths, opening folder by folder, built on Base UI.
Installation
Component API
| Prop | Type | Default | Description |
|---|---|---|---|
paths | string[] | - | |
label | string | Files | The tree's accessible name. |
| The tree's accessible name. | |||
defaultExpanded | string[] | - | The folders open on first render, by path. |
| The folders open on first render, by path. | |||
defaultSelected | string | - | |
selected | string | - | The controlled picked row, by path. |
| The controlled picked row, by path. | |||
onSelectedChange | (selected: string) => void | - | Called with the path of the row just picked. |
| Called with the path of the row just picked. | |||
shape | none | rounded | pill | rounded | |
animated | boolean | true | |
className | string | - | |
focus | boolean | string | true | |