Files
heroui-vue/apps/docs/demos/checkbox-external-label.vue
2026-10-22 09:15:27 +08:00

22 lines
481 B
Vue

<script setup lang="ts">
import {
CheckboxContent,
CheckboxControl,
CheckboxIndicator,
Checkbox,
Label,
} from "@heroui-vue/components";
</script>
<template>
<div class="flex items-center gap-3">
<Checkbox id="label-marketing">
<CheckboxContent>
<CheckboxControl>
<CheckboxIndicator />
</CheckboxControl>
</CheckboxContent>
</Checkbox>
<Label for="label-marketing">给我发送营销邮件</Label>
</div>
</template>