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

Relationship Graph

Source Code

apps/v4/examples/base/ui-rtl/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 ps-1.5 pe-8 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 end-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-rtl/combobox.tsx.
Where is ComboboxItem() defined?
ComboboxItem() is defined in apps/v4/examples/base/ui-rtl/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