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