🔥 欢迎我们的新项目 t0ggles - 您最终的项目管理工具! 🔥

预加载器(Spinner)Svelte 组件

预加载器组件

包含以下组件

  • 预加载器

预加载器属性

名称类型默认值描述
colors对象

包含 Tailwind CSS 颜色类别的对象

colors.iconIos字符串'text-primary'
colors.iconMaterial字符串'text-md-light-primary dark:text-md-dark-primary'
size字符串'w-8 h-8'

Tailwind CSS 尺寸类别

示例

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>
代码许可证 MIT.
2022 © Konsta UI by nolimits4web.