Skip to content

Folder tree ​

Folders and their subfolders as a tree, to pick one folder.

components-foldertree--defaultOpen in Storybook ↗

When to use ​

  • Picking one folder from a folder structure, such as a network drive in the import browser.

When not to use ​

  • Records and their relations: show them as a list on the record's page.
  • A flat list of choices: use a dropdown.

Anatomy ​

  1. Row: a dot, the folder name in bold and a light bar at the right edge. Clicking the row selects the folder.
  2. Disclosure: a chevron at the end of the row, only on folders that have subfolders. It points down while closed and up while open.
  3. Subfolders: indented under their folder, joined to it by thin connector lines.

Variants ​

There is one tree. Each level loads its subfolders the first time it opens.

components-foldertree--collapsedOpen in Storybook ↗

States ​

StateWhat you seeTrigger
Closedchevron down, subfolders hidden—
Loadingloading rows under the folderopening a folder for the first time
Openchevron up, subfolders indented belowclicking the chevron
Hoverdot, folder name and the bar at the row's right edge turn bluepointer
Selectedrow filled with the selection colourclicking the row

Opening a folder again reloads its subfolders. Selecting a folder does not open it, and opening a folder does not select it.

Keyboard & accessibility ​

  • Rows and chevrons respond to the pointer.
  • The selected folder is shown with colour alone.

Content ​

  • Folder names show exactly as they are on the drive.

Import browser · Loading

Powered by Elody - Open Source Semantic Data Platform