WARNING: this component is deprectated.
It is replaced by the following base components:
- lightning:notificationsLibrary for simple text notices.
- lightning:overlayLibrary for fully customizable modal dialogs
This is a generic & customizable modal dialog component built using Salesforce Lightning and SLDS style. It does not rely on third party libraries. It features all of the options of the original SLDS modal.
Features
The Lightning Modal component provides the following features:
- rich body that supports any Lightning components
- optional header block with a title and an optional tagline
- optional footer block that supports any Lightning components
- rendering options: wide modal, close icon, directional buttons
- a shorthand method to dynamically create a simple alert modal
Install the Lightning Modal component as a managed package by clicking on this button:
Component is documented using the Aura documentation. You can access it from this URL (replace the domain): https://<YOUR_DOMAIN>.lightning.force.com/auradocs/reference.app#reference?descriptor=ui_modal:modal&defType=component
Check out the sample application.