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