feat: add Checkbox and Radio field families

This commit is contained in:
maoyingjie
2026-10-22 09:15:27 +08:00
parent a4fb3c550a
commit bcadbeaf8c
75 changed files with 5293 additions and 22 deletions
+20
View File
@@ -0,0 +1,20 @@
<script setup lang="ts">
import {
CheckboxContent,
CheckboxControl,
CheckboxIndicator,
Checkbox,
Description,
} from "@heroui-vue/components";
</script>
<template>
<Checkbox id="render-props-terms" v-slot="{ isSelected }">
<CheckboxContent>
<CheckboxControl><CheckboxIndicator /></CheckboxControl>
{{ isSelected ? "已同意条款" : "接受条款" }}
</CheckboxContent>
<Description>
{{ isSelected ? "感谢您的确认" : "请先阅读并接受条款" }}
</Description>
</Checkbox>
</template>