Skip to content
Design System
GitHub

A short decision or form that needs an answer before you go on, in a panel over the page.

Dialog default

Install
npx shadcn add @syncrobotic/dialog

Also installs: radix-ui, lucide-react, @syncrobotic/cn

Overview

A centered panel for a short task or decision, blocking the page until it is done or closed.

When to use

  • Rename, a short form, a choice with two or three outcomes.

Use something else

  • Confirming something that cannot be undone: Alert dialog.
  • Longer content, or on phones: Sheet.

More examples

States and real uses. Each example is also a Storybook story and a visual regression test.

Dialog information

Patterns

Ready-made uses of dialog with real data and copy. Each installs as source under its own name.

Form and share dialogs

A short decision over the page: confirm a deletion, fill three fields, share with people.

  • The title is the question or the action; the buttons repeat its verb.
  • The safe choice is focused first. The destructive one is an outline, never solid red.
  • Errors keep the dialog open and everything typed in it.

Form in a dialog

A short form in a dialog: three fields at most, errors under their fields, nothing typed is lost.

Install
npx shadcn add @syncrobotic/dialog-form

Share dialog

Invite people by email, change their access in place, and copy a link whose reach is said in words.

Install
npx shadcn add @syncrobotic/dialog-share

Usage rules

  • A short decision. On phones prefer Sheet for anything longer.

Changelog

  • 0.23.02026-11-20Every word it says can be translated without editing the source: DialogContent takes labels.close; closeLabel still works and wins.
  • 0.7.02026-11-17The close button sits 8 px from the corner (concentric) and presses.
  • 0.6.02026-11-17Scrim fades in; the dialog appears and disappears.

How to upgrade