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

21 lines
510 B
Vue

<script setup lang="ts">
import {
CheckboxContent,
CheckboxControl,
CheckboxIndicator,
Checkbox,
} from "@heroui-vue/components";
</script>
<template>
<Checkbox id="custom">
<CheckboxContent>
<CheckboxControl class="bg-success-soft before:bg-success">
<CheckboxIndicator
class="**:data-[slot=checkbox-default-indicator--checkmark]:text-success-foreground"
/>
</CheckboxControl>
自定义样式复选框
</CheckboxContent>
</Checkbox>
</template>