Home / Function/ ComboboxChip() — ui Function Reference

ComboboxChip() — ui Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  c2ef2abd_2c0a_3917_a596_74068e9b539e["ComboboxChip()"]
  895497f8_f57f_b837_ebec_047e85efa44d["combobox.tsx"]
  c2ef2abd_2c0a_3917_a596_74068e9b539e -->|defined in| 895497f8_f57f_b837_ebec_047e85efa44d
  style c2ef2abd_2c0a_3917_a596_74068e9b539e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/base/ui/combobox.tsx lines 248–284

function ComboboxChip({
  className,
  children,
  showRemove = true,
  ...props
}: ComboboxPrimitive.Chip.Props & {
  showRemove?: boolean
}) {
  return (
    <ComboboxPrimitive.Chip
      data-slot="combobox-chip"
      className={cn(
        "cn-combobox-chip has-disabled:pointer-events-none has-disabled:cursor-not-allowed has-disabled:opacity-50",
        className
      )}
      {...props}
    >
      {children}
      {showRemove && (
        <ComboboxPrimitive.ChipRemove
          render={<Button variant="ghost" size="icon-xs" />}
          className="cn-combobox-chip-remove"
          data-slot="combobox-chip-remove"
        >
          <IconPlaceholder
            lucide="XIcon"
            tabler="IconX"
            hugeicons="Cancel01Icon"
            phosphor="XIcon"
            remixicon="RiCloseLine"
            className="cn-combobox-chip-indicator-icon pointer-events-none"
          />
        </ComboboxPrimitive.ChipRemove>
      )}
    </ComboboxPrimitive.Chip>
  )
}

Subdomains

Frequently Asked Questions

What does ComboboxChip() do?
ComboboxChip() is a function in the ui codebase, defined in apps/v4/registry/bases/base/ui/combobox.tsx.
Where is ComboboxChip() defined?
ComboboxChip() is defined in apps/v4/registry/bases/base/ui/combobox.tsx at line 248.

Analyze Your Own Codebase

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

Try Supermodel Free