Files
heroui-vue/apps/docs/demos/switch-default-selected.vue

19 lines
328 B
Vue

<script setup lang="ts">
import {
Switch,
SwitchContent,
SwitchControl,
SwitchThumb,
} from "@heroui-vue/components";
</script>
<template>
<Switch default-selected>
<SwitchContent>
<SwitchControl>
<SwitchThumb />
</SwitchControl>
启用通知
</SwitchContent>
</Switch>
</template>