switch

Switch in different sizes.

Switch in different sizes.

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

src/switch/c-switch-4.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-sm" size="sm" />
      <Label for="switch-sm">Small Switch</Label>
    </div>
    <div class="flex items-center gap-2">
      <Switch id="switch-default" size="default" />
      <Label for="switch-default">Default Switch</Label>
    </div>
  </div>
</template>

Установка

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

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

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