Files
heroui-vue/apps/docs/demos/close-button-with-custom-icon.vue
T

21 lines
624 B
Vue

<script setup lang="ts">
import { CloseButton } from "@heroui-vue/components";
import { IconCircleX, IconX } from "@tabler/icons-vue";
</script>
<template>
<div class="flex items-center gap-4">
<div class="flex flex-col items-center gap-2">
<CloseButton>
<IconCircleX aria-hidden="true" />
</CloseButton>
<span class="text-xs text-muted">自定义图标</span>
</div>
<div class="flex flex-col items-center gap-2">
<CloseButton>
<IconX aria-hidden="true" />
</CloseButton>
<span class="text-xs text-muted">备选图标</span>
</div>
</div>
</template>