Files
2026-10-21 13:04:06 +08:00

59 lines
1.9 KiB
Vue
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<script setup lang="ts">
import { Surface } from "@heroui-vue/components";
</script>
<template>
<div class="flex flex-col gap-4">
<div class="flex flex-col gap-2">
<p class="text-sm font-medium text-muted">默认</p>
<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>
<p class="text-sm text-muted">
这是默认表面变体,使用 bg-surface 样式。
</p>
</Surface>
</div>
<div class="flex flex-col gap-2">
<p class="text-sm font-medium text-muted">次要</p>
<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>
<p class="text-sm text-muted">
这是次要表面变体,使用 bg-surface-secondary 样式。
</p>
</Surface>
</div>
<div class="flex flex-col gap-2">
<p class="text-sm font-medium text-muted">第三</p>
<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>
<p class="text-sm text-muted">
这是第三表面变体,使用 bg-surface-tertiary 样式。
</p>
</Surface>
</div>
<div class="flex flex-col gap-2">
<p class="text-sm font-medium text-muted">透明</p>
<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>
<p class="text-sm text-muted">
这是透明表面变体,无背景,适用于遮罩层和自定义背景的卡片。
</p>
</Surface>
</div>
</div>
</template>