Back to gallery

Dialog

Event log

  1. Nothing yet.

Variants

Each button opens the dialog with that variant. Escape, the close button or a press on the overlay closes it.

Sizes

One dialog per size preset, all with the opaque variant.

Playground

Every option of the dialog frame. Position anchored and scrollable apply to any variant.

Slots

Header, body, section, footer, form row and field stack drawn outside a dialog.

Header with an icon
Subtitle in the tertiary tone.
Outlined circle
The outlined circle widens the gap.
Loading icon
The icon shows a spinner ring.
Title size lg
Secondary tone, small.
Title size base
Default tone.
Title size sm
Confirmation header
Used by sectionedConfirmation.

A section after the first has 12px of padding above.

A large section has 20px.

Body size scrollable

This action cannot be undone.

Body size viewport

This action cannot be undone.

Body size topPositioned

This action cannot be undone.

Body size full

This action cannot be undone.

Body size tall

This action cannot be undone.

Behaviour

Focus, dismissal, nested layers, height animation, locked dismissal and a form with an error and a disabled button.

Select this sentence, then open the dialog: the selection is cleared.

Shell, sheet and frame

The standard shell, its image sheet, and the anchored frame.

Light, dark, right to left and zoom

Each panel sets its own theme scope and holds its dialog (non-modal, so the page stays usable). The nested panels put the opposite theme inside; their dialogs follow the nearest scope.

Light panel

Dark panel

Light panel nested in a dark one

Dark panel nested in a light one

Page zoom 1.25: the dialog is drawn with CSS zoom 1.25 (a dialog in a portal container is not scaled).

Right to left