Dialog
Dialog is a floating surface used to display transient content such as confirmation actions, selection options, and more.
On this page
On this page
Import
import {Dialog} from '@primer/react'
Examples
Props
Dialog
| Name | Default | Description |
|---|---|---|
isOpen | booleanWhether or not the dialog is open | |
onDismiss | () => voidFunction that will be called when the dialog is closed | |
returnFocusRef | React.RefObject<HTMLElement>The element to restore focus back to after the | |
initialFocusRef | React.RefObject<HTMLElement>Element inside of the | |
aria-labelledby | stringPass an id to use for the aria-label. Use either a | |
aria-label | stringPass a label to be used to describe the Dialog. Use either a | |
sx | SystemStyleObject |
Dialog.Header
| Name | Default | Description |
|---|---|---|
sx | SystemStyleObject |