@toolsntuts/svelte-spinloader
v0.1.2
Published
Generic spinloader for loading states
Readme
Svelte SpinLoader
It makes use of the following technologies
Usage
If you're seeing this, you've probably already done this step. Congrats!
<script lang="ts">
import SpinLoader from "@toolsntuts/SpinLoader.svelte"
</script>
<SpinLoader />Configuration
- class: Tailwindcss classes to be added as class props
- borderColor: primary or white. Default is primary
<script lang="ts">
import SpinLoader from "@toolsntuts/SpinLoader.svelte"
</script>
<SpinLoader class="size-4" borderColor="white" />Update your vite.config.ts file in your sveltekit application with the following
import { defineConfig } from 'vitest/config';
import { sveltekit } from '@sveltejs/kit/vite';
export default defineConfig({
plugins: [sveltekit()],
server: {
fs: {
allow: [
'dist', // Allow access to the dist folder
'.', // Allow access to the project root
'src' // Allow access to src if needed
]
}
}
});