checkbox

Card checkbox with group

Card checkbox with group

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

src/checkbox/c-checkbox-9.vue

<script setup lang="ts">
import { Checkbox } from "@/components/ui/checkbox"
import { FieldContent, FieldDescription, FieldGroup, FieldLabel, FieldTitle, Field } from "@/components/ui/field"
</script>

<template>
  <FieldGroup class="max-w-xs">
    <FieldLabel>
      <Field orientation="horizontal">
        <Checkbox :default-value="true" />
        <FieldContent>
          <FieldTitle>Enable notifications</FieldTitle>
          <FieldDescription>
            You can enable or disable notifications at any time.
          </FieldDescription>
        </FieldContent>
      </Field>
    </FieldLabel>
  </FieldGroup>
</template>

Установка

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

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

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