This commit is contained in:
2025-05-24 01:49:48 +09:00
commit 62abbcf4eb
2376 changed files with 325522 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
---
state:
value: true
---
### Block label
You might have to add a label to your switches in some cases.
If so, use the `VSwitchBlock` component, which provides a nice and clean
flexbox layout. See the code example for more details about usage.
<!--code-->
```vue
<script setup lang="ts">
const value = ref(true)
</script>
<template>
<VField>
<VControl>
<VSwitchBlock v-model="value" label="Some option" />
</VControl>
</VField>
</template>
```
<!--/code-->
<!--example-->
<div>
<VField>
<VControl>
<VSwitchBlock
v-model="frontmatter.state.value"
label="Some option"
/>
</VControl>
</VField>
</div>
<!--/example-->