Dialog
Dialog is a floating surface used to display transient content such as confirmation actions, selection options, and more.
On this page
- @primer/react@36.27.0
- Alpha
- Not reviewed for accessibility
On this page
Import
import {Dialog} from '@primer/react'
Examples
Props
Dialog
Name | Default | Description |
---|---|---|
isOpen | boolean Whether or not the dialog is open | |
onDismiss | () => void Function 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 | string Pass an id to use for the aria-label. Use either a | |
aria-label | string Pass a label to be used to describe the Dialog. Use either a | |
sx | SystemStyleObject |
Dialog.Header
Name | Default | Description |
---|---|---|
sx | SystemStyleObject |