48 lines
1.2 KiB
Vue
48 lines
1.2 KiB
Vue
<script setup lang="ts">
|
|
import {
|
|
CheckboxGroup,
|
|
CheckboxContent,
|
|
CheckboxControl,
|
|
CheckboxIndicator,
|
|
Checkbox,
|
|
Label,
|
|
Description,
|
|
Surface,
|
|
} from "@heroui-vue/components";
|
|
</script>
|
|
<template>
|
|
<Surface class="w-full rounded-3xl p-6">
|
|
<CheckboxGroup name="interests" variant="secondary">
|
|
<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>
|
|
</Surface>
|
|
</template>
|