ComboboxRtl() — ui Function Reference
Architecture documentation for the ComboboxRtl() function in combobox-rtl.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 933ed10f_8964_edee_a53a_b20250cc2bb6["ComboboxRtl()"] 531e34d1_b10b_1809_37c0_f2564bd87c05["combobox-rtl.tsx"] 933ed10f_8964_edee_a53a_b20250cc2bb6 -->|defined in| 531e34d1_b10b_1809_37c0_f2564bd87c05 style 933ed10f_8964_edee_a53a_b20250cc2bb6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/examples/radix/combobox-rtl.tsx lines 77–133
export function ComboboxRtl() {
const { dir, t, language } = useTranslation(translations, "ar")
const anchor = useComboboxAnchor()
const categoryLabels: Record<string, string> = {
technology: t.technology,
design: t.design,
business: t.business,
marketing: t.marketing,
education: t.education,
health: t.health,
}
return (
<Field className="mx-auto w-full max-w-xs">
<FieldLabel>{t.label}</FieldLabel>
<Combobox
multiple
autoHighlight
items={categories}
defaultValue={[categories[0]]}
itemToStringValue={(item: (typeof categories)[number]) =>
categoryLabels[item] || item
}
>
<ComboboxChips ref={anchor}>
<ComboboxValue>
{(values) => (
<React.Fragment>
{values.map((value: string) => (
<ComboboxChip key={value}>
{categoryLabels[value] || value}
</ComboboxChip>
))}
<ComboboxChipsInput placeholder={t.placeholder} />
</React.Fragment>
)}
</ComboboxValue>
</ComboboxChips>
<ComboboxContent
anchor={anchor}
dir={dir}
data-lang={dir === "rtl" ? language : undefined}
>
<ComboboxEmpty>{t.empty}</ComboboxEmpty>
<ComboboxList>
{(item) => (
<ComboboxItem key={item} value={item}>
{categoryLabels[item] || item}
</ComboboxItem>
)}
</ComboboxList>
</ComboboxContent>
</Combobox>
</Field>
)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does ComboboxRtl() do?
ComboboxRtl() is a function in the ui codebase, defined in apps/v4/examples/radix/combobox-rtl.tsx.
Where is ComboboxRtl() defined?
ComboboxRtl() is defined in apps/v4/examples/radix/combobox-rtl.tsx at line 77.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free