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
+37
View File
@@ -0,0 +1,37 @@
<script setup lang="ts">
import {
CheckboxContent,
CheckboxControl,
CheckboxIndicator,
Checkbox,
Description,
} from "@heroui-vue/components";
</script>
<template>
<div class="flex flex-col gap-4">
<div class="flex flex-col gap-2">
<p class="text-sm font-medium text-muted">主要变体</p>
<Checkbox id="primary" name="primary" variant="primary">
<CheckboxContent>
<CheckboxControl>
<CheckboxIndicator />
</CheckboxControl>
主要复选框
</CheckboxContent>
<Description>默认背景的标准样式</Description>
</Checkbox>
</div>
<div class="flex flex-col gap-2">
<p class="text-sm font-medium text-muted">次要变体</p>
<Checkbox id="secondary" name="secondary" variant="secondary">
<CheckboxContent>
<CheckboxControl>
<CheckboxIndicator />
</CheckboxControl>
次要复选框
</CheckboxContent>
<Description>用于表面容器的低强调样式</Description>
</Checkbox>
</div>
</div>
</template>