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
  ed8c44c4_d20b_5f1a_7ec1_a02de05f5f02["Checkbox()"]
  09b8ec8a_8811_71b5_fefd_2870f1e95ba2["checkbox.tsx"]
  ed8c44c4_d20b_5f1a_7ec1_a02de05f5f02 -->|defined in| 09b8ec8a_8811_71b5_fefd_2870f1e95ba2
  style ed8c44c4_d20b_5f1a_7ec1_a02de05f5f02 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/base/ui/checkbox.tsx lines 8–32

function Checkbox({ className, ...props }: CheckboxPrimitive.Root.Props) {
  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/base/ui/checkbox.tsx.
Where is Checkbox() defined?
Checkbox() is defined in apps/v4/registry/bases/base/ui/checkbox.tsx at line 8.

Analyze Your Own Codebase

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

Try Supermodel Free