Dialog component

Figma Component
Dialog is a type of modal window that appears in front of app content to provide critical information or ask for a decision.

Properties

NameDescriptionDefault
initialFocus

Which element to initially focus. Can be either a number (tabbable index as specified by the order) or a ref. You can set this to a negative number to ignore the initial focus.

-
onClose

required

Dialog window close callback
-
open
Dialog window open state
-
size
Dialog layout and size variants
-
trigger
Dialog's visibility trigger element
-
Note: This table does not include native DOM and React properties like `onClick`, `ref`, `id`, `aria-label` (and many others) supported by this component.

Dialog Large

Dialog Medium