Skip to content

Spinners

Mostly used as a loading indication, Spinner components may be placed alone or inside other components like buttons to enhance user experience while data is retrieved from your server. It is available in a variety of colors, sizes, and shapes. We have used ESpinner component in Eloader and loader EBtn elements.

Import

jsx
import EBeat from "@components/Elements/ESpinners/EBeat";
import EClip from "@components/Elements/ESpinners/EClip";
import EMoon from "@components/Elements/ESpinners/EMoon";
import EBounce from "@components/Elements/ESpinners/EBounce";

Usage

It comes in four shapes :

  1. Beat
<EBeat/>
jsx
<EBeat loading={true}/>
  1. Bounce
<EBounce/>
jsx
<EBounce loading={true} />
  1. Clip
<EClip/>
jsx
<EClip loading={true}/>
  1. Moon
<EMoon/>
jsx
<EMoon loading={true}/>

Props

For Spinner components, the following props are available:

PropTypeDefaultNote
loadingBooleanfalseDisplays spinners.
size[Number, String]"1.25rem"It will be assigned to width and height.
classNameString-Overrides or extends the component's wrapper styles.
customColorString-A custom color in rgb format is applied to the Spinners (e.g, customColor="101, 89, 204").
colorString"primary"The given color is applied to the Spinners - utility colors are supported (e.g primary or danger). you'll find a list of built-in classes on the src/styles/_vars.scsspage.

COPYRIGHT