Skip to content

Switch Group

Layout wrapper for related switches.

Import

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

Usage

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

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

API

PropTypeDefaultDescription
orientation'horizontal' | 'vertical'undefinedLayout orientation

Released under the Apache-2.0 License.