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
@@ -3,6 +3,7 @@ import { computed, ref, watch } from "vue";
import { Primitive } from "reka-ui";
import type { ButtonHTMLAttributes } from "vue";
import { buttonVariants, type ButtonVariants } from "@heroui-vue/styles";
import Spinner from "../spinner/Spinner.vue";
defineOptions({ inheritAttrs: false });
const props = withDefaults(
defineProps<{
@@ -80,7 +81,12 @@ function focus(e: FocusEvent) {
pressed = false;
"
>
<span v-if="loading && !asChild" class="hv-spinner" aria-hidden="true" />
<Spinner
v-if="loading && !asChild"
aria-hidden="true"
color="current"
size="sm"
/>
<slot
:is-pending="Boolean(pending)"
:is-disabled="Boolean(disabled)"