This is extension of my recent post Lightning Utilities - Salesforce. This post talks about a lightning custom component for spinner that can be used at the time of loading anything. It has been made using Lightning design system. It has following features:
- Plug n play
- Use SLDS to display spinner as per Salesforce's branding
- Extra feature to display a text to display what type of action is going on.
- Can be used in different sizes.
|type||Yes||Size of loader. Can be large, medium, small|
|show||Yes||Show or hide the spinner|
|spinnerText||Optional||Additional text to be displayed along with spinner. Can be used to display loading for particular context.|
<c:Spinner show="true" type="large" spinnerText="Something happening.."/>