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

Relationship Graph

Source Code

apps/v4/examples/radix/ui-rtl/combobox.tsx lines 236–265

function ComboboxChip({
  className,
  children,
  showRemove = true,
  ...props
}: ComboboxPrimitive.Chip.Props & {
  showRemove?: boolean
}) {
  return (
    <ComboboxPrimitive.Chip
      data-slot="combobox-chip"
      className={cn(
        "bg-muted text-foreground flex h-[calc(--spacing(5.25))] w-fit items-center justify-center gap-1 rounded-sm px-1.5 text-xs font-medium whitespace-nowrap has-disabled:pointer-events-none has-disabled:cursor-not-allowed has-disabled:opacity-50 has-data-[slot=combobox-chip-remove]:pe-0",
        className
      )}
      {...props}
    >
      {children}
      {showRemove && (
        <ComboboxPrimitive.ChipRemove
          render={<Button variant="ghost" size="icon-xs" />}
          className="-ms-1 opacity-50 hover:opacity-100"
          data-slot="combobox-chip-remove"
        >
          <XIcon className="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/examples/radix/ui-rtl/combobox.tsx.
Where is ComboboxChip() defined?
ComboboxChip() is defined in apps/v4/examples/radix/ui-rtl/combobox.tsx at line 236.

Analyze Your Own Codebase

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

Try Supermodel Free