Files

37 lines
702 B
Vue

<script setup lang="ts">
import {
Switch,
SwitchContent,
SwitchControl,
SwitchThumb,
} from "@heroui-vue/components";
</script>
<template>
<div class="flex gap-6">
<Switch size="sm">
<SwitchContent>
<SwitchControl>
<SwitchThumb />
</SwitchControl>
小
</SwitchContent>
</Switch>
<Switch size="md">
<SwitchContent>
<SwitchControl>
<SwitchThumb />
</SwitchControl>
中
</SwitchContent>
</Switch>
<Switch size="lg">
<SwitchContent>
<SwitchControl>
<SwitchThumb />
</SwitchControl>
大
</SwitchContent>
</Switch>
</div>
</template>