ComboboxChip() — ui Function Reference
Architecture documentation for the ComboboxChip() function in combobox.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD a0149ec4_9e39_6ecf_4366_fa89ec2b86fc["ComboboxChip()"] a0fd6b40_9461_a4b4_0670_97b6db49e709["combobox.tsx"] a0149ec4_9e39_6ecf_4366_fa89ec2b86fc -->|defined in| a0fd6b40_9461_a4b4_0670_97b6db49e709 style a0149ec4_9e39_6ecf_4366_fa89ec2b86fc fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/examples/base/ui-rtl/combobox.tsx lines 234–263
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>
)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does ComboboxChip() do?
ComboboxChip() is a function in the ui codebase, defined in apps/v4/examples/base/ui-rtl/combobox.tsx.
Where is ComboboxChip() defined?
ComboboxChip() is defined in apps/v4/examples/base/ui-rtl/combobox.tsx at line 234.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free