Lab

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, each Sidebar.Item with its count and the open one current, with the account in Sidebar.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

Tabmoves 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 / Spaceopens the focused tab
Deletecloses the focused tab
Alt + ← / →moves the focused tab
↑ / ↓ / Home / Endmove through the entries, opening each
J / Kopen the next or previous entry
N / Shift + Nadd an entry, or a new document
⌘S / Ctrl + Ssaves the document
[cycles the sidebar: open, icons, hidden
?opens the shortcut sheet; Escape clears its search, then closes it

Accessibility

  • The sidebar is a nav named Studio whose open document carries aria-current="page"; on the rail each icon keeps its name and shows it in a tooltip.
  • The tabs are a tablist over one tabpanel; 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.

Source

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