Extensions

Press shift + S to search API reference.

React component

Props

interface DialogProps extends DialogStyleProps
backgroundClassNameundefined | string

Extra classNames to apply to the background element, separated by spaces.

backgroundStyleReact.CSSProperties

Extra styles to apply to the background element.

childrenReact.ReactNode

The contents of the dialog element.

classNameundefined | string

Extra classNames to apply to the dialog element, separated by spaces.

onClosefunction () => unknown

Callback function to fire when the dialog is closed.

styleReact.CSSProperties

Extra styles to apply to the dialog element.