Activity Forums Salesforce® Discussions which standard component is used to show spinner in a lightning component?

  • Nikita

    Member
    October 17, 2019 at 12:01 pm

    Hi Yogesh,

    A lightning:spinner displays an animated spinner image to indicate that a feature is loading. This component can be used when retrieving data or anytime an operation doesn't immediately complete.

    The variant attribute changes the appearance of the spinner. If you set variant="brand", the spinner matches the Lightning Design System brand color. Setting variant="inverse" displays a white spinner. The default spinner color is dark blue.

    This component inherits styling from spinners in the Lightning Design System.

    Here is an example.

    <aura:component>
        <lightning:spinner variant="brand" size="large"/>
    </aura:component>

     

     

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos