feat: add CloseButton Avatar and Skeleton components

This commit is contained in:
maoyingjie
2026-10-21 17:06:53 +08:00
parent 56b1ef11d8
commit 3d05fea7bd
60 changed files with 3906 additions and 57 deletions
+2 -10
View File
@@ -1,6 +1,4 @@
<script setup lang="ts">
import { closeButtonVariants } from "@heroui-vue/styles";
import { IconX } from "@tabler/icons-vue";
import {
Card,
CardHeader,
@@ -8,6 +6,7 @@ import {
CardDescription,
CardFooter,
Button,
CloseButton,
} from "@heroui-vue/components";
</script>
<template>
@@ -28,14 +27,7 @@ import {
<CardDescription>
这是一段占位说明文字,用于展示横向卡片布局、配图与右上角关闭按钮的排版效果。
</CardDescription>
<button
type="button"
:class="closeButtonVariants()"
aria-label="关闭横幅"
class="absolute end-3 top-3"
>
<IconX aria-hidden="true" />
</button>
<CloseButton aria-label="关闭横幅" class="absolute end-3 top-3" />
</CardHeader>
<CardFooter
class="mt-auto flex w-full flex-col items-start gap-3 sm:flex-row sm:items-center sm:justify-between"