components/checkbox.tsx

llmchat · packages/ui/src/components/checkbox.tsx · typescript · MIT
ui

checkbox.tsx from trendy-design/llmchat

// Source: https://github.com/trendy-design/llmchat | License: MIT | Copyright 2024 Dipmal Lakhani, Trendy Studio (trendy.design)
// Provided via justclaw.it.com; keep this notice with the code.
"use client"

import * as CheckboxPrimitive from "@radix-ui/react-checkbox"
import { Check } from "lucide-react"
import * as React from "react"

import { cn } from "../lib/utils"

const Checkbox = React.forwardRef<
  React.ElementRef<typeof CheckboxPrimitive.Root>,
  React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>
>(({ className, ...props }, ref) => (
  <CheckboxPrimitive.Root
    ref={ref}
    className={cn(
      "peer w-5 h-5 shrink-0 rounded-md border border-primary focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity

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

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

Get a free API key