ComboboxWithCustomItems() — ui Function Reference
Architecture documentation for the ComboboxWithCustomItems() function in combobox-example.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 8ac64b7a_d5be_e2d8_e1d9_bede71b182de["ComboboxWithCustomItems()"] 08c943e1_cbb3_6c4d_0fd2_1693e54a1d0a["combobox-example.tsx"] 8ac64b7a_d5be_e2d8_e1d9_bede71b182de -->|defined in| 08c943e1_cbb3_6c4d_0fd2_1693e54a1d0a style 8ac64b7a_d5be_e2d8_e1d9_bede71b182de fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/bases/base/examples/combobox-example.tsx lines 1133–1165
function ComboboxWithCustomItems() {
return (
<Example title="With Custom Item Rendering">
<Combobox
items={countries.filter((country) => country.code !== "")}
itemToStringValue={(country: (typeof countries)[number]) =>
country.label
}
>
<ComboboxInput placeholder="Search countries..." />
<ComboboxContent>
<ComboboxEmpty>No countries found.</ComboboxEmpty>
<ComboboxList>
{(country) => (
<ComboboxItem key={country.code} value={country}>
<Item size="xs" className="p-0">
<ItemContent>
<ItemTitle className="whitespace-nowrap">
{country.label}
</ItemTitle>
<ItemDescription>
{country.continent} ({country.code})
</ItemDescription>
</ItemContent>
</Item>
</ComboboxItem>
)}
</ComboboxList>
</ComboboxContent>
</Combobox>
</Example>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does ComboboxWithCustomItems() do?
ComboboxWithCustomItems() is a function in the ui codebase, defined in apps/v4/registry/bases/base/examples/combobox-example.tsx.
Where is ComboboxWithCustomItems() defined?
ComboboxWithCustomItems() is defined in apps/v4/registry/bases/base/examples/combobox-example.tsx at line 1133.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free