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
Breadcrumbof the open folder's path over aSplitter: a folders-onlyTreein one pane, a selectableTableof 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
Menuopens, 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 |
| Enter | opens the focused folder, in the tree or the table |
| Space | checks or unchecks the focused row |
| Shift + click | checks every row between the last one and this one |
| Escape | closes a row's menu and returns to its button |
Accessibility
- The tree is a
treeoftreeitems witharia-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.
The React tab is the component’s real source; the SwiftUI tab is its twin in TUTTNKit.