Modal API
API reference docs for theModal
component. For examples and details on the usage of this component, visit the component demo page.
Props
Props | Type | Description | Default |
---|---|---|---|
|
| When set to | _ |
|
| Callback triggered on closing the dialog and will activate upon pressing "Esc" or clicking on the overlay. | _ |
|
| Callback fired when "Esc" key is pressed along with | _ |
|
| Callback fired when the overlay is clicked along with | _ |
|
| Id of Modal Title element, will be announced as | _ |
|
| Id of Modal description element, will be announced as | _ |
| boolean | If |
|
| boolean | If |
|
|
| The |
|
|
| The size of the Modal 'Dialog' box in pixels. |
|
|
| Indicates if the opened element should be rendered as a Sheet in mobile viewports. |
|
|
| The screen width at which the modal should switch to a mobile-friendly layout. Deprecated with backwards compatibility ⚠️ (The logic will be handled internally in future) |
|
|
| If users need to interact with other parts of the page such as a chatbot window , disable focus containment within the modal by setting this prop to |
|