Loader

To use the Loader component, import it from '$lib/components'.

typescript

Then, use it in your Svelte template:

html

preview

The Loader component is a simple Svelte component that accepts two props:

typescript

The Loader component is styled using classes and can be customized by passing class names to the class and spinnerClass props.