Lab

File browser

Slant / Components

A project's folders in a tree beside the open folder's files, with its path above, a bar for the checked rows, and a menu on every row.

The theme follows the link: share a page with ?theme=moon.

Usage

  • A Breadcrumb of the open folder's path over a Splitter: a folders-only Tree in one pane, a selectable Table of the folder's entries in the other.
  • Opening a folder from a crumb, the tree, or a folder's name in the table moves the other two with it.
  • Checking rows brings up the bar: the count, Download, Move to a folder, Delete, and Clear. Each row's Menu opens, renames, duplicates or deletes it.

Keyboard

↑ / ↓moves between the folders in the tree
← / →closes or opens a folder in the tree; on the handle, resizes the panes
Enteropens the focused folder, in the tree or the table
Spacechecks or unchecks the focused row
Shift + clickchecks every row between the last one and this one
Escapecloses a row's menu and returns to its button

Accessibility

  • The tree is a tree of treeitems with aria-expanded; the open folder is its one selected item.
  • Each row's checkbox and menu button are named after the row, and the header checkbox turns mixed when only some rows are checked.
  • Every action reads out through a polite status line, and when rows go away focus moves to the table rather than the page.

File browser in React and SwiftUI.

Source

The React tab is the component’s real source; the SwiftUI tab is its twin in TUTTNKit.