mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 07:43:32 +09:00
49 lines
735 B
Markdown
49 lines
735 B
Markdown
---
|
|
state:
|
|
value: true
|
|
---
|
|
|
|
### Thin 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"
|
|
thin
|
|
/>
|
|
</VControl>
|
|
</VField>
|
|
</template>
|
|
```
|
|
|
|
<!--/code-->
|
|
|
|
<!--example-->
|
|
|
|
<div>
|
|
<VField>
|
|
<VControl>
|
|
<VSwitchBlock
|
|
v-model="frontmatter.state.value"
|
|
label="Some option"
|
|
thin
|
|
/>
|
|
</VControl>
|
|
</VField>
|
|
</div>
|
|
|
|
<!--/example-->
|