feat: add Separator Kbd and Chip components
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
<script setup lang="ts">
|
||||
import { Separator } from "@heroui-vue/components";
|
||||
|
||||
const items = [
|
||||
{
|
||||
iconUrl:
|
||||
"https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/docs/3dicons/bell-small.png",
|
||||
subtitle: "接收账户活动更新",
|
||||
title: "设置通知",
|
||||
},
|
||||
{
|
||||
iconUrl:
|
||||
"https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/docs/3dicons/compass-small.png",
|
||||
subtitle: "将浏览器连接到你的账户",
|
||||
title: "设置浏览器扩展",
|
||||
},
|
||||
{
|
||||
iconUrl:
|
||||
"https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/docs/3dicons/mint-collective-small.png",
|
||||
subtitle: "创建你的第一件收藏品",
|
||||
title: "铸造收藏品",
|
||||
},
|
||||
];
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="max-w-md space-y-4">
|
||||
<div v-for="(item, index) in items" :key="item.title">
|
||||
<div class="flex items-center gap-3">
|
||||
<img :alt="item.title" class="size-12" :src="item.iconUrl" />
|
||||
<div class="flex-1 space-y-0">
|
||||
<h4 class="text-small font-medium">{{ item.title }}</h4>
|
||||
<p class="text-sm text-muted">{{ item.subtitle }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<Separator v-if="index < items.length - 1" class="my-4" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user