Files
heroui-vue/apps/docs/demos/color-swatch-transparency.vue
T
2026-10-26 13:25:21 +08:00

14 lines
565 B
Vue

<script setup lang="ts">
import { ColorSwatch } from "@heroui-vue/components";
</script>
<template>
<div class="flex items-center gap-3">
<ColorSwatch aria-label="100% 不透明度" color="rgba(4, 133, 247, 1)" />
<ColorSwatch aria-label="75% 不透明度" color="rgba(4, 133, 247, 0.75)" />
<ColorSwatch aria-label="50% 不透明度" color="rgba(4, 133, 247, 0.5)" />
<ColorSwatch aria-label="25% 不透明度" color="rgba(4, 133, 247, 0.25)" />
<ColorSwatch aria-label="0% 不透明度" color="rgba(4, 133, 247, 0)" />
</div>
</template>