Skip to content

Switch Group ​

Layout wrapper for related switches.

Import ​

ts
import { SwitchGroup } from '@rysinal/heroui-vue'

Usage ​

<template>
  <SwitchGroup class="gap-4">
    <Switch default-checked>Notifications</Switch>
    <Switch>Product updates</Switch>
  </SwitchGroup>
</template>

<script setup>
import { Switch, SwitchGroup } from '@rysinal/heroui-vue'
</script>

API ​

PropTypeDefaultDescription
orientation'horizontal' | 'vertical'undefinedLayout orientation

Released under the Apache-2.0 License.