feat: add Separator Kbd and Chip components

This commit is contained in:
maoyingjie
2026-10-21 18:35:24 +08:00
parent 3d05fea7bd
commit 3515a47f5e
51 changed files with 2813 additions and 21 deletions
@@ -0,0 +1,51 @@
<script setup lang="ts">
import { Separator, Surface } from "@heroui-vue/components";
</script>
<template>
<div class="flex flex-col gap-8">
<div class="flex flex-col gap-2">
<Surface
class="flex min-w-[320px] flex-col gap-3 rounded-3xl p-6"
variant="default"
>
<h3 class="text-base font-semibold text-foreground">默认表面</h3>
<Separator />
<p class="text-sm text-muted">表面内容</p>
</Surface>
</div>
<div class="flex flex-col gap-2">
<Surface
class="flex min-w-[320px] flex-col gap-3 rounded-3xl p-6"
variant="secondary"
>
<h3 class="text-base font-semibold text-foreground">次要表面</h3>
<Separator variant="secondary" />
<p class="text-sm text-muted">表面内容</p>
</Surface>
</div>
<div class="flex flex-col gap-2">
<Surface
class="flex min-w-[320px] flex-col gap-3 rounded-3xl p-6"
variant="tertiary"
>
<h3 class="text-base font-semibold text-foreground">第三表面</h3>
<Separator variant="tertiary" />
<p class="text-sm text-muted">表面内容</p>
</Surface>
</div>
<div class="flex flex-col gap-2">
<Surface
class="flex min-w-[320px] flex-col gap-3 rounded-3xl border p-6"
variant="transparent"
>
<h3 class="text-base font-semibold text-foreground">透明表面</h3>
<Separator />
<p class="text-sm text-muted">表面内容</p>
</Surface>
</div>
</div>
</template>