loaders.css as Svelte components.
A zero dependency spinner/loader library using loaders.css as Svelte components.
svelte-spins
can be installed using yarn
or npm
.
yarn add svelte-spins
npm i svelte-spins
<script>
import { BallPulseSync } from "svelte-spins";
let color = "red";
let classes = "button-loader";
let style="background: green; padding: 3rem;";
</script>
<BallPulseSync {color} {classes} {style} />
All props are optional.
Name | Value | Default Value | Function |
---|---|---|---|
classes | string |
null |
Classes to be applied |
style | string |
null |
Inline styles to be applied |
color | string |
black |
The foreground color of the loader |