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
  a9b6f10d_dadb_d3ce_16e9_cfd8d4dd68e2["ComboboxItem()"]
  dac51d75_d063_fa67_a9af_e6357896e810["combobox.tsx"]
  a9b6f10d_dadb_d3ce_16e9_cfd8d4dd68e2 -->|defined in| dac51d75_d063_fa67_a9af_e6357896e810
  style a9b6f10d_dadb_d3ce_16e9_cfd8d4dd68e2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/base/ui/combobox.tsx lines 136–160

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 not-data-[variant=destructive]:data-highlighted:**:text-accent-foreground relative flex w-full cursor-default items-center gap-2 rounded-md py-1 pr-8 pl-1.5 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
        render={
          <span className="pointer-events-none absolute right-2 flex size-4 items-center justify-center" />
        }
      >
        <CheckIcon className="pointer-events-none" />
      </ComboboxPrimitive.ItemIndicator>
    </ComboboxPrimitive.Item>
  )
}

Subdomains

Frequently Asked Questions

What does ComboboxItem() do?
ComboboxItem() is a function in the ui codebase, defined in apps/v4/examples/base/ui/combobox.tsx.
Where is ComboboxItem() defined?
ComboboxItem() is defined in apps/v4/examples/base/ui/combobox.tsx at line 136.

Analyze Your Own Codebase

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

Try Supermodel Free