switch

Disabled switch.

Disabled switch.

Загрузка превью…

src/switch/c-switch-3.vue

<script setup lang="ts">
import { Label } from "@/components/ui/label"
import { Switch } from "@/components/ui/switch"
</script>

<template>
  <div class="flex flex-col items-start justify-start gap-3">
    <div class="flex items-center gap-2">
      <Switch id="switch-disabled-unchecked" disabled />
      <Label for="switch-disabled-unchecked">Disabled (Unchecked)</Label>
    </div>
    <div class="flex items-center gap-2">
      <Switch id="switch-disabled-checked" :default-value="true" disabled />
      <Label for="switch-disabled-checked">Disabled (Checked)</Label>
    </div>
  </div>
</template>

Установка

npx shadcn-vue@latest add https://revueui.rootapi.dev/r/c-switch-3.json

Зависимости реестра

Источник: порт из ReUI (Keenthemes, MIT)