feat: add Checkbox and Radio field families
This commit is contained in:
@@ -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">
|
||||
<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>
|
||||
Reference in New Issue
Block a user