feat: add Surface, Link and Spinner components
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<script setup lang="ts">
|
||||
import { Spinner } from "@heroui-vue/components";
|
||||
|
||||
const COLOR_LABELS = {
|
||||
accent: "强调",
|
||||
current: "当前",
|
||||
danger: "危险",
|
||||
success: "成功",
|
||||
warning: "警告",
|
||||
} as const;
|
||||
|
||||
const colors = ["current", "accent", "success", "warning", "danger"] as const;
|
||||
</script>
|
||||
<template>
|
||||
<div class="flex items-center gap-8">
|
||||
<div
|
||||
v-for="color in colors"
|
||||
:key="color"
|
||||
class="flex flex-col items-center gap-2"
|
||||
>
|
||||
<Spinner :color="color" />
|
||||
<span class="text-xs text-muted">{{ COLOR_LABELS[color] }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user