Optional
aboutOptional
accessOptional
AppOptional
aria-Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.
Optional
aria-Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.
Optional
aria-Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be presented if they are made.
Optional
aria-Defines a string value that labels the current element, which is intended to be converted into Braille.
Optional
aria-Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille.
Optional
aria-Optional
aria-Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.
Optional
aria-Defines the total number of columns in a table, grid, or treegrid.
Optional
aria-Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.
Optional
aria-Defines a human readable text alternative of aria-colindex.
Optional
aria-Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.
Optional
aria-Identifies the element (or elements) whose contents or presence are controlled by the current element.
Optional
aria-Indicates the element that represents the current item within a container or set of related elements.
Optional
aria-The id(s) of the element(s) that describe the dialog.
Optional
aria-Defines a string value that describes or annotates the current element.
Optional
aria-Identifies the element that provides a detailed, extended description for the object.
Optional
aria-Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.
Optional
aria-Indicates what functions can be performed when a dragged object is released on the drop target.
Optional
aria-Identifies the element that provides an error message for the object.
Optional
aria-Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.
Optional
aria-Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order.
Optional
aria-Indicates an element's "grabbed" state in a drag-and-drop operation.
Optional
aria-Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.
Optional
aria-Indicates whether the element is exposed to an accessibility API.
Optional
aria-Indicates the entered value does not conform to the format expected by the application.
Optional
aria-Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.
Optional
aria-Defines a string value that labels the current element.
Optional
aria-The id(s) of the element(s) that label the dialog.
Optional
aria-Defines the hierarchical level of an element within a structure.
Optional
aria-Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.
Optional
aria-Indicates whether an element is modal when displayed.
Optional
aria-Indicates whether a text box accepts multiple lines of input or only a single line.
Optional
aria-Indicates that the user may select more than one item from the current selectable descendants.
Optional
aria-Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.
Optional
aria-Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship between DOM elements where the DOM hierarchy cannot be used to represent the relationship.
Optional
aria-Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format.
Optional
aria-Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
Optional
aria-Indicates the current "pressed" state of toggle buttons.
Optional
aria-Indicates that the element is not editable, but is otherwise operable.
Optional
aria-Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.
Optional
aria-Indicates that user input is required on the element before a form may be submitted.
Optional
aria-Defines a human-readable, author-localized description for the role of an element.
Optional
aria-Defines the total number of rows in a table, grid, or treegrid.
Optional
aria-Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.
Optional
aria-Defines a human readable text alternative of aria-rowindex.
Optional
aria-Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.
Optional
aria-Indicates the current "selected" state of various widgets.
Optional
aria-Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
Optional
aria-Indicates if items in a table or grid are sorted in ascending or descending order.
Optional
aria-Defines the maximum allowed value for a range widget.
Optional
aria-Defines the minimum allowed value for a range widget.
Optional
aria-Defines the current value for a range widget.
Optional
aria-Defines the human readable text alternative of aria-valuenow for a range widget.
Provides a screen reader name for the dialog. Mandatory for WCAG 2.1 compliance.
Optional
autoOptional
autoOptional
autoOptional
autoOptional
BackdropA backdrop component. This prop enables custom backdrop rendering.
Optional
BackdropProps applied to the Backdrop
element.
Optional
childrenDialog children, usually the included sub-components.
Optional
classesOverride or extend the styles applied to the component.
Optional
closeWhen set to true the Modal waits until a nested Transition is completed before closing.
Optional
colorOptional
componentOptional
componentsThe components used for each slot inside.
This prop is an alias for the slots
prop.
It's recommended to use the slots
prop instead.
Optional
componentsThe extra props for the slot components. You can override the existing props or add new ones.
This prop is an alias for the slotProps
prop.
It's recommended to use the slotProps
prop instead, as componentsProps
will be deprecated in the future.
Optional
containerAn HTML element or function that returns one.
The container
will have the portal children appended to it.
You can also provide a callback, which is called in a React layout effect. This lets you set the container from a ref, and also makes server-side rendering possible.
By default, it uses the body of the top-level document object,
so it's simply document.body
most of the time.
Optional
contentOptional
contentOptional
contextOptional
customArray of custom attributes that can be used for testing purposes.
Optional
customIndicating if it's possible to set a custom width. If no customWidth is set, it uses the default value depending on variant.
Optional
dangerouslyOptional
datatypeOptional
defaultOptional
defaultOptional
dirOptional
disableIf true
, the modal will not automatically shift focus to itself when it opens, and
replace it to the last focused element when it closes.
This also works correctly with any modal children that have the disableAutoFocus
prop.
Generally this should never be set to true
as it makes the modal less
accessible to assistive technologies, like screen readers.
Optional
disableIf true, the modal will not prevent focus from leaving the modal while open. Default value is false
Optional
disableIf true
, hitting escape will not fire the onClose
callback.
Optional
disableIf true, the dialog will not automatically focus the first heading
Optional
disableThe children
will be under the DOM hierarchy of the parent component.
Optional
disableIf true
, the modal will not restore focus to previously focused element once
modal is hidden or unmounted.
Optional
disableDisable the scroll lock behavior.
Optional
draggableOptional
enteringDirection the dialog will enter from.
Optional
enterOptional
fullIf true
, the dialog is full-screen.
Optional
fullIf true
, the dialog stretches to maxWidth
.
Notice that the dialog width grow is limited by the default margin.
Optional
hiddenOptional
hideIf true
, the backdrop is not rendered.
Optional
idOptional
inertOptional
inlistOptional
inputHints at the type of data that might be entered by the user while editing the element or its contents
Optional
isSpecify that a standard HTML element should behave like a defined custom built-in element
Optional
itemIDOptional
itemOptional
itemOptional
itemOptional
itemOptional
keepAlways keep the children in the DOM. This prop can be useful in SEO situation or when you want to maximize the responsiveness of the Modal.
Optional
keyOptional
langOptional
maxDetermine the max-width of the dialog.
The dialog width grows with the size of the screen.
Set to false
to disable maxWidth
.
Optional
nonceOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onCallback fired when the backdrop is clicked.
Optional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onCallback fired when the component requests to be closed.
The event source of the callback.
Can be: "escapeKeyDown"
, "backdropClick"
.
Optional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onA function called when a transition enters.
Optional
onA function called when a transition has exited.
Optional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onOptional
onBoolean indicating if the dialog is open. Default value is false.
Optional
PaperThe component used to render the body of the dialog.
Optional
PaperProps applied to the Paper
element.
Optional
popoverOptional
popoverOptional
popoverOptional
prefixOptional
propertyOptional
radioOptional
refOptional
relOptional
resourceOptional
resultsOptional
revOptional
roleOptional
scrollDetermine the container for scrolling the dialog.
Optional
securityOptional
shouldClose dialog on background click. Default value is false.
Optional
slotOptional
slotThe props used for each slot inside the Modal.
Optional
slotsThe components used for each slot inside the Modal. Either a string to use a HTML element or a component.
Optional
spellOptional
styleOptional
suppressOptional
suppressOptional
sxThe system prop that allows defining system overrides as well as additional CSS styles.
Optional
tabOptional
titleOptional
TransitionThe component used for the transition. Follow this guide to learn more about the requirements for this component.
Optional
transitionThe duration for the transition, in milliseconds. You may specify a single timeout for all transitions, or individually with an object.
Optional
TransitionProps applied to the transition element.
By default, the element is based on this Transition
component.
Optional
translateOptional
twSpecify styles using Tailwind CSS classes. This feature is currently experimental.
If style
prop is also specified, styles generated with tw
prop will be overridden.
Example:
tw='w-full h-full bg-blue-200'
tw='text-9xl'
tw='text-[80px]'
Optional
typeofOptional
unselectableOptional
variantLayout variants of the dialog.
Optional
vocab
Object to set props for the app bar in full screen mode.