feat: add Surface, Link and Spinner components

This commit is contained in:
maoyingjie
2026-10-21 13:04:06 +08:00
parent 9d40dc0ecb
commit 630963c652
52 changed files with 2683 additions and 162 deletions
+2 -10
View File
@@ -1,17 +1,9 @@
<script setup lang="ts">
import { IconLoader2 } from "@tabler/icons-vue";
import { Button } from "@heroui-vue/components";
import { Button, Spinner } from "@heroui-vue/components";
</script>
<template>
<Button is-pending v-slot="{ isPending }">
<span
v-if="isPending"
data-slot="spinner"
class="inline-flex size-4 shrink-0"
aria-hidden="true"
>
<IconLoader2 class="size-full animate-spin motion-reduce:animate-none" />
</span>
<Spinner v-if="isPending" color="current" size="sm" />
上传中…
</Button>
</template>