Files
heroui-vue/apps/docs/demos/spinner-sizes.vue
T
2026-10-21 13:04:06 +08:00

25 lines
517 B
Vue

<script setup lang="ts">
import { Spinner } from "@heroui-vue/components";
const SIZE_LABELS = {
lg: "大",
md: "中",
sm: "小",
xl: "特大",
} as const;
const sizes = ["sm", "md", "lg", "xl"] as const;
</script>
<template>
<div class="flex items-center gap-8">
<div
v-for="size in sizes"
:key="size"
class="flex flex-col items-center gap-2"
>
<Spinner :size="size" />
<span class="text-xs text-muted">{{ SIZE_LABELS[size] }}</span>
</div>
</div>
</template>