Home / Function/ Checkbox() — ui Function Reference

Checkbox() — ui Function Reference

Architecture documentation for the Checkbox() function in checkbox.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  98b9d23e_1e7b_d20e_b1b6_3952bce9f173["Checkbox()"]
  a9453eeb_fc89_6086_6e4c_6f430caa3f04["checkbox.tsx"]
  98b9d23e_1e7b_d20e_b1b6_3952bce9f173 -->|defined in| a9453eeb_fc89_6086_6e4c_6f430caa3f04
  style 98b9d23e_1e7b_d20e_b1b6_3952bce9f173 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/radix/ui/checkbox.tsx lines 9–36

function Checkbox({
  className,
  ...props
}: React.ComponentProps<typeof CheckboxPrimitive.Root>) {
  return (
    <CheckboxPrimitive.Root
      data-slot="checkbox"
      className={cn(
        "cn-checkbox peer relative shrink-0 outline-none after:absolute after:-inset-x-3 after:-inset-y-2 disabled:cursor-not-allowed disabled:opacity-50",
        className
      )}
      {...props}
    >
      <CheckboxPrimitive.Indicator
        data-slot="checkbox-indicator"
        className="cn-checkbox-indicator grid place-content-center text-current transition-none"
      >
        <IconPlaceholder
          lucide="CheckIcon"
          tabler="IconCheck"
          hugeicons="Tick02Icon"
          phosphor="CheckIcon"
          remixicon="RiCheckLine"
        />
      </CheckboxPrimitive.Indicator>
    </CheckboxPrimitive.Root>
  )
}

Subdomains

Frequently Asked Questions

What does Checkbox() do?
Checkbox() is a function in the ui codebase, defined in apps/v4/registry/bases/radix/ui/checkbox.tsx.
Where is Checkbox() defined?
Checkbox() is defined in apps/v4/registry/bases/radix/ui/checkbox.tsx at line 9.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free