Start sharing components as a team!Share components as a team!Join Bit to build your applications faster.Get Started Free

dialog

v4.5.2arrow_drop_down
v4.5.2
v3.9.2
STATUS
Passing
DOWNLOADS
1,085
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
3 months ago
SIZE
30 KB
Dialogs are overlaid modal paper based components with a backdrop.
2 contributors
Install dialog as a package?
Copied
npm i @bit/mui-org.material-ui.dialog
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.dev
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
modifieddraft
modifieddraft
modifieddraft
modifieddraft
modifieddraft
modifieddraft
modifieddraft
modifieddraft
modifieddraft
modifieddraft
modifieddraft
chevron_left
chevron_right
dialog ()

Dialogs are overlaid modal paper based components with a backdrop.

Properties
NameTypeDescription
aria-describedby
string

The id(s) of the element(s) that describe the dialog.

aria-labelledby
string

The id(s) of the element(s) that label the dialog.

BackdropProps
object
children
(required)
node

Dialog children, usually the included sub-components.

classes
(required)
object

Override or extend the styles applied to the component. See CSS API below for more details.

className
string
disableBackdropClick
bool

If true, clicking the backdrop will not fire the onClose callback.

disableEscapeKeyDown
bool

If true, hitting escape will not fire the onClose callback.

fullScreen
bool

If true, the dialog will be full-screen

fullWidth
bool

If true, the dialog stretches to maxWidth.

Notice that the dialog width grow is limited by the default margin.

maxWidth
'xs' | 'sm' | 'md' | 'lg' | 'xl' | false

Determine the max-width of the dialog. The dialog width grows with the size of the screen. Set to false to disable maxWidth.

onBackdropClick
function

Callback fired when the backdrop is clicked.

onClose
function

The event source of the callback.

onEnter
function

Callback fired before the dialog enters.

onEntered
function

Callback fired when the dialog has entered.

onEntering
function

Callback fired when the dialog is entering.

onEscapeKeyDown
function

Callback fired when the escape key is pressed, disableKeyboard is false and the modal is in focus.

onExit
function

Callback fired before the dialog exits.

onExited
function

Callback fired when the dialog has exited.

onExiting
function

Callback fired when the dialog is exiting.

open
(required)
bool

If true, the Dialog is open.

PaperComponent
elementType

The component used to render the body of the dialog.

PaperProps
object

Props applied to the Paper element.

scroll
'body' | 'paper'

Determine the container for scrolling the dialog.

TransitionComponent
elementType

The component used for the transition.

transitionDuration
number | {"enter":"number","exit":"number"}

The duration for the transition, in milliseconds. You may specify a single timeout for all transitions, or individually with an object.

TransitionProps
object

Props applied to the Transition element.