Loading
×Sorry to interrupt
CSS Error
Aura Component

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:alert

    Targets

    Lightning Experience, Experience Builder Sites, Lightning Out / Visualforce, Standalone Lightning App

Example Options

Alert

Code

<aura:component> <aura:import library="lightning:alert" property="LightningAlert" /> <lightning:button onclick="{! c.openAlert }" label="Open Alert"/> </aura:component> 
Component
Controller
Helper
Example
Documentation
Specification