Skip to content

rizz1406/LWC-Spinner

 
 

Repository files navigation

Salesforce Dynamic Spinner

The contents of this project is largely inspired by this blog post from Mario Pavicic.

I found that I have been reusing this component every time I need to display some text along with the spinner, and I thought, why not make it into a reusable component?

example.png

I have included a parentComponent lwc to illustrate how this component could be use as a child component across all your LWCs. You would almost always want to wrap it in a container that has relative position, something like:

    <div class="slds-is-relative" style="height: 300px;">
        <c-spinner variant="brand" text="Please wait."></c-spinner>
    </div>

And the inverse variant should be used only on dark backgrounds.

Read more

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 52.1%
  • HTML 30.4%
  • CSS 16.4%
  • Shell 1.1%