feat: add CloseButton Avatar and Skeleton components
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user