I have a loading spinner in my lightning component, but I want to add some text for the user to know for example what they are waiting for while its spinning, or just a simple "This might take some time".
Component:
<aura:component implements="force:appHostable" controller="mycontroller" access="global">
<aura:attribute name="Spinner" type="boolean" default="false"/>
<!--Loading Spinner-->
<aura:if isTrue="{!v.Spinner}">
<lightning:spinner alternativeText="Loading" variant="brand" size="large"/>
</aura:if>
<!--/Loading Spinner-->
</aura:component>
Best Answer
You cannot get custom message with standard
lightning:spinner
. However, you can use the base classes from slds spinnerBelow is sample:
STYLE:
OUTPUT: