feat: add Checkbox and Radio field families
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
<script setup lang="ts">
|
||||
import {
|
||||
CheckboxGroup,
|
||||
CheckboxContent,
|
||||
CheckboxControl,
|
||||
CheckboxIndicator,
|
||||
Checkbox,
|
||||
Label,
|
||||
Description,
|
||||
} from "@heroui-vue/components";
|
||||
import { IconX } from "@tabler/icons-vue";
|
||||
</script>
|
||||
<template>
|
||||
<CheckboxGroup name="features">
|
||||
<Label>功能</Label>
|
||||
<Description>选择你需要的功能</Description>
|
||||
<Checkbox value="notifications">
|
||||
<CheckboxContent>
|
||||
<CheckboxControl>
|
||||
<CheckboxIndicator v-slot="{ isSelected }">
|
||||
<IconX v-if="isSelected" aria-hidden="true" />
|
||||
</CheckboxIndicator>
|
||||
</CheckboxControl>
|
||||
邮件通知
|
||||
</CheckboxContent>
|
||||
<Description>通过邮件接收更新</Description>
|
||||
</Checkbox>
|
||||
<Checkbox value="newsletter">
|
||||
<CheckboxContent>
|
||||
<CheckboxControl>
|
||||
<CheckboxIndicator v-slot="{ isSelected }">
|
||||
<IconX v-if="isSelected" aria-hidden="true" />
|
||||
</CheckboxIndicator>
|
||||
</CheckboxControl>
|
||||
邮件通讯
|
||||
</CheckboxContent>
|
||||
<Description>每周接收邮件简报</Description>
|
||||
</Checkbox>
|
||||
</CheckboxGroup>
|
||||
</template>
|
||||
Reference in New Issue
Block a user