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

14 lines
445 B
Vue

<script setup lang="ts">
import { ColorSwatch } from "@heroui-vue/components";
</script>
<template>
<div class="flex items-center gap-3">
<ColorSwatch aria-label="蓝色" color="#0485F7" />
<ColorSwatch aria-label="红色" color="#EF4444" />
<ColorSwatch aria-label="琥珀色" color="#F59E0B" />
<ColorSwatch aria-label="绿色" color="#10B981" />
<ColorSwatch aria-label="品红" color="#D946EF" />
</div>
</template>