Skip to content

Dialog

Dialog

Dialog is a modal overlay service for displaying content in focused panels with customizable positioning and backdrop behavior.

PropertyValue
Default Width500-600px (customizable)
Max Width90vw (mobile)
Border Radius8-12px
Box ShadowHigh elevation
BackdropSemi-transparent black
Z-index1000+

Centered in viewport (default position)

Center Position

Top-left corner of viewport

Top-right corner of viewport

Bottom-left corner of viewport

Bottom-right corner of viewport

Bottom-center, sheet style

StateBehavior
OpeningFade in, scale up animation
OpenFully visible, backdrop shown
ClosingFade out, scale down animation
ClosedRemoved from DOM
PatternDescription
ModalBlocks interaction with underlying content
Non-modalAllows interaction with underlying content
AlertSimple message with confirmation
FormCollects user input in focused context
DetailShows additional information on demand
BehaviorUsage
StaticBackdrop visible, click does nothing
CloseableClick backdrop to close dialog
NoneNo backdrop overlay
  • Focused user attention required
  • Collecting input in context
  • Displaying important information
  • Confirming critical actions
  • Complex workflows
✅ Do❌ Don’t
Provide clear close optionsTrap users without exit
Use for focused interactionsDisplay non-critical info
Consider mobile sizeMake panels too large
Handle ESC keyDisable keyboard closing
Show clear titleLeave content unlabeled
Manage focus properlyIgnore accessibility
  • Focus trapped within dialog
  • Focus returns to trigger on close
  • Accessibility (dialog role)
  • Accessibility (labels and descriptions)
  • ESC key to close
  • Screen reader announcements