combobox-multiple.tsx — ui Source File
Architecture documentation for combobox-multiple.tsx, a tsx file in the ui codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 57723a04_1d8f_e69e_66a1_b3abe63dc7f2["combobox-multiple.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] 57723a04_1d8f_e69e_66a1_b3abe63dc7f2 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 b26067bf_0c7f_f0fc_eeee_221af6da4c0f["combobox"] 57723a04_1d8f_e69e_66a1_b3abe63dc7f2 --> b26067bf_0c7f_f0fc_eeee_221af6da4c0f style 57723a04_1d8f_e69e_66a1_b3abe63dc7f2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import {
Combobox,
ComboboxChip,
ComboboxChips,
ComboboxChipsInput,
ComboboxContent,
ComboboxEmpty,
ComboboxItem,
ComboboxList,
ComboboxValue,
useComboboxAnchor,
} from "@/examples/radix/ui/combobox"
const frameworks = [
"Next.js",
"SvelteKit",
"Nuxt.js",
"Remix",
"Astro",
] as const
export function ComboboxMultiple() {
const anchor = useComboboxAnchor()
return (
<Combobox
multiple
autoHighlight
items={frameworks}
defaultValue={[frameworks[0]]}
>
<ComboboxChips ref={anchor} className="w-full max-w-xs">
<ComboboxValue>
{(values) => (
<React.Fragment>
{values.map((value: string) => (
<ComboboxChip key={value}>{value}</ComboboxChip>
))}
<ComboboxChipsInput />
</React.Fragment>
)}
</ComboboxValue>
</ComboboxChips>
<ComboboxContent anchor={anchor}>
<ComboboxEmpty>No items found.</ComboboxEmpty>
<ComboboxList>
{(item) => (
<ComboboxItem key={item} value={item}>
{item}
</ComboboxItem>
)}
</ComboboxList>
</ComboboxContent>
</Combobox>
)
}
Domain
Subdomains
Functions
Dependencies
- combobox
- react
Source
Frequently Asked Questions
What does combobox-multiple.tsx do?
combobox-multiple.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, SearchAPI subdomain.
What functions are defined in combobox-multiple.tsx?
combobox-multiple.tsx defines 1 function(s): ComboboxMultiple.
What does combobox-multiple.tsx depend on?
combobox-multiple.tsx imports 2 module(s): combobox, react.
Where is combobox-multiple.tsx in the architecture?
combobox-multiple.tsx is located at apps/v4/examples/radix/combobox-multiple.tsx (domain: DocumentationAtlas, subdomain: SearchAPI, directory: apps/v4/examples/radix).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free