Alert
A modal that communicates a state affecting the entire system, not just a feature or page. This component requires API version 54.0 and later.
Descriptor
lightning:alertTargets
Lightning Experience, Experience Builder Sites, Lightning Out / Visualforce, Standalone Lightning App
Example Options
AlertAlert that opens on click.
Alert
Code
<aura:component> <aura:import library="lightning:alert" property="LightningAlert" /> <lightning:button onclick="{! c.openAlert }" label="Open Alert"/> </aura:component>