Skip to content

VLoader

A directive to add loading overlays on a component.

The v-loader directive can take both loader types provided by ornament, circular and pulsing-loader.

html
<div style="height: 400px; width: 1090px; border-radius: 10px" v-loader:circular="isLoading">
</div>
<div style="height: 400px; width: 1090px; border-radius: 10px" v-loader:circular="isLoading">
</div>

Props (Circular)

PropRequiredDefaultTypeDescription
dimensionfalse30numberRadius of circle
borderWidthfalse3numberWidth of cicle's border
topTextfalse''stringText displayed at top of screen
bottomTextfalse''stringText displayed at bottom of screen

Props (Pulsing)

PropRequiredDefaultTypeDescription
countfalse4numberNumber of boxes to display
dimensionfalse30numberRadius of circle
topTextfalse''stringText displayed at top of screen
bottomTextfalse''stringText displayed at bottom of screen
boxColorfalse#1F2937stringColor of box displayed
roundedfalsefalsebooleanchange box to a circle

D2B ___ Chidi Ikeoha