Lab

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

Escapecloses the dialog without choosing
Tabcycles inside the dialog
Entersubmits 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.

Source

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