Home / File/ checkbox.tsx — ui Source File

checkbox.tsx — ui Source File

Architecture documentation for checkbox.tsx, a tsx file in the ui codebase. 3 imports, 0 dependents.

File tsx ComponentRegistry UIPrimitives 3 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  09b8ec8a_8811_71b5_fefd_2870f1e95ba2["checkbox.tsx"]
  b9466862_a837_22e9_4a17_e3a41c88d18b["checkbox"]
  09b8ec8a_8811_71b5_fefd_2870f1e95ba2 --> b9466862_a837_22e9_4a17_e3a41c88d18b
  8ad666ec_1b20_adda_0392_87a60bdb3a68["utils"]
  09b8ec8a_8811_71b5_fefd_2870f1e95ba2 --> 8ad666ec_1b20_adda_0392_87a60bdb3a68
  de6fac54_74ca_6c25_8f8b_d1ba3287dbf2["icon-placeholder"]
  09b8ec8a_8811_71b5_fefd_2870f1e95ba2 --> de6fac54_74ca_6c25_8f8b_d1ba3287dbf2
  style 09b8ec8a_8811_71b5_fefd_2870f1e95ba2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import { Checkbox as CheckboxPrimitive } from "@base-ui/react/checkbox"

import { cn } from "@/registry/bases/base/lib/utils"
import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"

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>
  )
}

export { Checkbox }

Subdomains

Functions

Dependencies

  • checkbox
  • icon-placeholder
  • utils

Frequently Asked Questions

What does checkbox.tsx do?
checkbox.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, UIPrimitives subdomain.
What functions are defined in checkbox.tsx?
checkbox.tsx defines 1 function(s): Checkbox.
What does checkbox.tsx depend on?
checkbox.tsx imports 3 module(s): checkbox, icon-placeholder, utils.
Where is checkbox.tsx in the architecture?
checkbox.tsx is located at apps/v4/registry/bases/base/ui/checkbox.tsx (domain: ComponentRegistry, subdomain: UIPrimitives, directory: apps/v4/registry/bases/base/ui).

Analyze Your Own Codebase

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

Try Supermodel Free