App shell
Slant / Components
An app's frame: a sidebar of documents with counts, tabs over the work area, a header with the path and save state, a list beside the picked entry, and the keys along the bottom.
The theme follows the link: share a page with ?theme=moon.
Usage
<Sidebar collapse="never">lists the documents in two sections, eachSidebar.Itemwith its count and the open onecurrent, with the account inSidebar.Footer. In a card it starts as a rail of icons; the button in the tab strip cycles it open, icons, hidden.<DocumentTabs>holds the open documents: close one, add a draft, reorder by drag or Alt+arrows. Its panel is a<PageHeader>, whose<Breadcrumb status>reads Saved, Saving… or Unsaved changes, over a<Splitter>between the entry list and the picked entry.- One
Shortcut[]list feeds<KeyHints bindKeys={frame}>along the bottom and the<ShortcutSheet>that "?" opens. The keys work inside the frame only, so the rest of the page keeps its own.
Keyboard
| Tab | moves through the sidebar, the tab strip, the header, the list, the handle, the notes and the hints |
| ← / → | moves between the tabs, or resizes the panes on the handle |
| Enter / Space | opens the focused tab |
| Delete | closes the focused tab |
| Alt + ← / → | moves the focused tab |
| ↑ / ↓ / Home / End | move through the entries, opening each |
| J / K | open the next or previous entry |
| N / Shift + N | add an entry, or a new document |
| ⌘S / Ctrl + S | saves the document |
| [ | cycles the sidebar: open, icons, hidden |
| ? | opens the shortcut sheet; Escape clears its search, then closes it |
Accessibility
- The sidebar is a
navnamed Studio whose open document carriesaria-current="page"; on the rail each icon keeps its name and shows it in a tooltip. - The tabs are a
tablistover onetabpanel; an unsaved document says so in its tab's name, and closing a tab moves focus to the one that takes its place. - The breadcrumb's status is a live region, so a save reads out; the hints are a toolbar of buttons with
aria-keyshortcuts, and every other change reads out through a polite status line.
App shell in React and SwiftUI.
The React tab is the component’s real source; the SwiftUI tab is its twin in TUTTNKit.