Overlays

Dialog

A centered modal over a dimmed page.

npx shadcn-svelte@latest add http://localhost:5173/r/dialog.json

Form

Not anchored to anything, so it scales in from its own center (250ms) while the page dims, and eases out in 200ms. Focus is trapped, Escape closes it, focus returns to the trigger.

light
dark

Sizes

sm, default and lg widths; always 16px clear of the screen edge.

light
dark

Long content

Taller than the screen: the dialog scrolls inside, and the page behind stays put.

light
dark