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

Relationship Graph

Source Code

apps/v4/examples/radix/ui/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]:pr-0",
        className
      )}
      {...props}
    >
      {children}
      {showRemove && (
        <ComboboxPrimitive.ChipRemove
          render={<Button variant="ghost" size="icon-xs" />}
          className="-ml-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/combobox.tsx.
Where is ComboboxChip() defined?
ComboboxChip() is defined in apps/v4/examples/radix/ui/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