Dialog
Slant / Workspace
Modal sheets on the native dialog element: confirm a discard, or collect a name, with focus handled for you.
The theme follows the link: share a page with ?theme=moon.
Usage
- Built on Slant’s
Dialog, so the page behind is inert and focus stays inside. - Discard draft is an alert: the safe answer takes focus first.
Keyboard
| Escape | closes the dialog without choosing |
| Tab | cycles inside the dialog |
| Enter | submits the form when a field has focus |
Accessibility
- Each dialog is named by its title; focus returns to the button that opened it.
Dialog in React and SwiftUI.
The React tab is the component’s real source; the SwiftUI tab is its twin in TUTTNKit.