Files
heroui-vue/apps/docs/demos/separator-with-surface.vue
2026-10-21 18:35:24 +08:00

52 lines
1.5 KiB
Vue

<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>