UI component libraryModal and Dialog Components
Overlay components

Modal and dialog components for focused product actions

Compare focused overlay patterns for confirmations, compact edits, onboarding, quick views, and multi-step actions.

ConfirmationsQuick editsOnboardingSettingsProduct previewsMulti-step actions

Use a modal only when focus matters

A modal interrupts the current page, so reserve it for actions that benefit from focused attention. Simple navigation or long content usually belongs on a normal route instead.

Dialogs need a clear title, a direct next action, a safe cancellation path, focus containment, Escape handling, and focus restoration after closing.

Component FAQ

Questions about modal and dialog components

Practical answers about framework fit, responsive behavior, accessibility, source access, and implementation.

When should I avoid using a modal?

Avoid a modal for long reading, complex navigation, or tasks that need a shareable URL. Use a dedicated page when the workflow requires more space or history.

How do I make a modal keyboard accessible?

Move focus into the dialog, keep focus within it while open, support Escape when appropriate, and restore focus to the trigger after closing.

Should confirmation dialogs be used for every delete action?

Use confirmation when the consequence is significant or difficult to reverse. Undo can be a less disruptive choice for reversible actions.