Files
oa/documentation/switch-block/switch-block-thin-label-documentation.md
2025-05-24 01:49:48 +09:00

735 B

state
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.

<script setup lang="ts">
const value = ref(true)
</script>

<template>
  <VField>
    <VControl>
      <VSwitchBlock
        v-model="value"
        label="Some option"
        thin
      />
    </VControl>
  </VField>
</template>