checkbox/Checkbox.vue

langchat · langchat-ui/packages/@core/ui-kit/shadcn-ui/src/ui/checkbox/Checkbox.vue · vue · Apache-2.0
ui

Checkbox.vue from LangChat/langchat

<!--
  Source: https://github.com/LangChat/langchat | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
  Provided via justclaw.it.com; keep this notice with the code.
-->
<script setup lang="ts">
import type { CheckboxRootEmits, CheckboxRootProps } from 'reka-ui';

import { computed } from 'vue';

import { cn } from '@vben-core/shared/utils';

import { Check, Minus } from 'lucide-vue-next';
import { CheckboxIndicator, CheckboxRoot, useForwardPropsEmits } from 'reka-ui';

const props = defineProps<
  CheckboxRootProps & { class?: any; indeterminate?: boolean }
>();
const emits = defineEmits<CheckboxRootEmits>();

const delegatedProps = computed(() => {
  const { class: _, ...delegated } = props;

  return delegated;
});

const forwarded = useForwar

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key