Home / Function/ ComboboxItem() — ui Function Reference

ComboboxItem() — ui Function Reference

Architecture documentation for the ComboboxItem() function in combobox.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  8d282dff_dcb3_5203_6706_31f871e105bf["ComboboxItem()"]
  1a6296a3_162d_d8cc_b69b_ee8d2255b8cd["combobox.tsx"]
  8d282dff_dcb3_5203_6706_31f871e105bf -->|defined in| 1a6296a3_162d_d8cc_b69b_ee8d2255b8cd
  style 8d282dff_dcb3_5203_6706_31f871e105bf fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/new-york-v4/ui/combobox.tsx lines 142–167

function ComboboxItem({
  className,
  children,
  ...props
}: ComboboxPrimitive.Item.Props) {
  return (
    <ComboboxPrimitive.Item
      data-slot="combobox-item"
      className={cn(
        "data-highlighted:bg-accent data-highlighted:text-accent-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
        className
      )}
      {...props}
    >
      {children}
      <ComboboxPrimitive.ItemIndicator
        data-slot="combobox-item-indicator"
        render={
          <span className="pointer-events-none absolute right-2 flex size-4 items-center justify-center" />
        }
      >
        <CheckIcon className="pointer-events-none size-4 pointer-coarse:size-5" />
      </ComboboxPrimitive.ItemIndicator>
    </ComboboxPrimitive.Item>
  )
}

Subdomains

Frequently Asked Questions

What does ComboboxItem() do?
ComboboxItem() is a function in the ui codebase, defined in apps/v4/registry/new-york-v4/ui/combobox.tsx.
Where is ComboboxItem() defined?
ComboboxItem() is defined in apps/v4/registry/new-york-v4/ui/combobox.tsx at line 142.

Analyze Your Own Codebase

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

Try Supermodel Free