🔥 Meet Our New Project: t0ggles - Your Ultimate Project Management Tool! 🔥

Preloader (Spinner) Svelte Component

Preloader Components

There are following components included:

  • Preloader

Preloader Props

NameTypeDefaultDescription
colorsobject

Object with Tailwind CSS colors classes

colors.iconIosstring'text-primary'
colors.iconMaterialstring'text-md-light-primary dark:text-md-dark-primary'
sizestring'w-8 h-8'

Tailwind CSS size classes

Examples

Preloader.svelte
<script>
import {
Page,
Navbar,
NavbarBackLink,
Block,
BlockTitle,
Preloader,
} from 'konsta/svelte';
</script>
<Page>
<Navbar title="Preloader" />
<BlockTitle>Default</BlockTitle>
<Block strong insetMaterial outlineIos class="text-center">
<Preloader />
</Block>
<BlockTitle>Colors</BlockTitle>
<Block strong insetMaterial outlineIos class="grid grid-cols-4">
<div class="text-center">
<Preloader class="k-color-brand-red" />
</div>
<div class="text-center">
<Preloader class="k-color-brand-green" />
</div>
<div class="text-center">
<Preloader class="k-color-brand-purple" />
</div>
<div class="text-center">
<Preloader class="k-color-brand-yellow" />
</div>
</Block>
<BlockTitle>Sizes</BlockTitle>
<Block strong insetMaterial outlineIos class="grid grid-cols-4 items-center">
<div class="text-center">
<Preloader size="w-4 h-4" />
</div>
<div class="text-center">
<Preloader size="w-8 h-8" />
</div>
<div class="text-center">
<Preloader size="w-12 h-12" />
</div>
<div class="text-center">
<Preloader size="w-16 h-16" />
</div>
</Block>
</Page>
Code licensed under MIT.
2022 © Konsta UI by nolimits4web.