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
@@ -0,0 +1,44 @@
<script setup lang="ts">
import {
CheckboxGroup,
CheckboxContent,
CheckboxControl,
CheckboxIndicator,
Checkbox,
Label,
Description,
} from "@heroui-vue/components";
</script>
<template>
<CheckboxGroup name="interests" data-custom="foo">
<Label>选择你的兴趣</Label>
<Description>可多选</Description>
<Checkbox value="coding">
<CheckboxContent>
<CheckboxControl>
<CheckboxIndicator />
</CheckboxControl>
编程
</CheckboxContent>
<Description>热爱构建软件</Description>
</Checkbox>
<Checkbox value="design">
<CheckboxContent>
<CheckboxControl>
<CheckboxIndicator />
</CheckboxControl>
设计
</CheckboxContent>
<Description>喜欢打造精美界面</Description>
</Checkbox>
<Checkbox value="writing">
<CheckboxContent>
<CheckboxControl>
<CheckboxIndicator />
</CheckboxControl>
写作
</CheckboxContent>
<Description>热衷于内容创作</Description>
</Checkbox>
</CheckboxGroup>
</template>