um

Dialog

Native <dialog>s sharing one panel: a titled header with a close button, the body, and an optional footer. Load one from the server into the shared modal, or put one on the page.

Loaded into the shared modal

Clear the name and save to see a 422 keep the dialog open. A good save closes it in the same render as the morph refresh. Slow shows the skeleton; Forbidden shows the error panel.

This example talks to a server

These are static pages, so what this example saves, posts or searches for won't answer here. Run the browser (bin/dev) or mount it in an app to try it for real.
Name
Ada Lovelace
Role
Engineer

Already on the page

dialog_tag and dialog_button open a dialog with no request.

Scopes

A scope limits what a token can do. Grant the fewest that get the job done.

A long form

The body scrolls inside a dialog taller than the screen, with the title and footer in view. The combobox at the bottom opens over the scrolling body, not inside it.

New project

Shown on invoices.

Ada Lovelace
Grace Hopper
Katherine Johnson
Radia Perlman

Open this near the bottom of the screen: the list flips above.

A drawer along the edge

side: :end (or :start) opens the panel as a drawer the full height of the screen, its body scrolling and its footer pinned. On a phone every dialog is a sheet from the bottom.

Filters

Render #4821

Scene
kitchen.modelscene.json
Kiln
saberpc
Started
Samples
256