Files
heroui-vue/apps/docs/demos/switch-label-position.vue
T

29 lines
540 B
Vue

<script setup lang="ts">
import {
Switch,
SwitchContent,
SwitchControl,
SwitchThumb,
} from "@heroui-vue/components";
</script>
<template>
<div class="flex flex-col gap-4">
<Switch>
<SwitchContent>
<SwitchControl>
<SwitchThumb />
</SwitchControl>
标签在后
</SwitchContent>
</Switch>
<Switch>
<SwitchContent>
标签在前
<SwitchControl>
<SwitchThumb />
</SwitchControl>
</SwitchContent>
</Switch>
</div>
</template>