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

Relationship Graph

Source Code

apps/v4/registry/new-york-v4/ui/combobox.tsx lines 244–273

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.5))] 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/registry/new-york-v4/ui/combobox.tsx.
Where is ComboboxChip() defined?
ComboboxChip() is defined in apps/v4/registry/new-york-v4/ui/combobox.tsx at line 244.

Analyze Your Own Codebase

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

Try Supermodel Free