feat: add Badge and Alert components

This commit is contained in:
maoyingjie
2026-10-21 21:32:40 +08:00
parent 3515a47f5e
commit 4f43789f60
41 changed files with 2422 additions and 17 deletions
+29
View File
@@ -0,0 +1,29 @@
<script setup lang="ts">
import {
Avatar,
AvatarImage,
AvatarFallback,
Badge,
BadgeAnchor,
} from "@heroui-vue/components";
</script>
<template>
<BadgeAnchor>
<Avatar>
<AvatarImage
alt="凯特·威尔逊"
src="https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/avatars/blue.jpg"
/>
<AvatarFallback>KW</AvatarFallback>
</Avatar>
<Badge
class="min-w-5 font-semibold tabular-nums"
color="accent"
size="sm"
variant="soft"
>
5
</Badge>
</BadgeAnchor>
</template>