ComboboxMultipleInvalid() — ui Function Reference
Architecture documentation for the ComboboxMultipleInvalid() function in combobox-example.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 109903ed_a1b6_f4e3_a6c1_118ea89907ec["ComboboxMultipleInvalid()"] 3abbb5d0_a426_2d0f_1c5d_dd3e5ea603b4["combobox-example.tsx"] 109903ed_a1b6_f4e3_a6c1_118ea89907ec -->|defined in| 3abbb5d0_a426_2d0f_1c5d_dd3e5ea603b4 style 109903ed_a1b6_f4e3_a6c1_118ea89907ec fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/bases/radix/examples/combobox-example.tsx lines 974–1054
function ComboboxMultipleInvalid() {
const anchor1 = useComboboxAnchor()
const anchor2 = useComboboxAnchor()
return (
<Example title="Combobox Multiple Invalid">
<div className="flex flex-col gap-4">
<Combobox
multiple
autoHighlight
items={frameworks}
defaultValue={[frameworks[0], frameworks[1]]}
>
<ComboboxChips ref={anchor1}>
<ComboboxValue>
{(values) => (
<React.Fragment>
{values.map((value: string) => (
<ComboboxChip key={value}>{value}</ComboboxChip>
))}
<ComboboxChipsInput aria-invalid="true" />
</React.Fragment>
)}
</ComboboxValue>
</ComboboxChips>
<ComboboxContent anchor={anchor1}>
<ComboboxEmpty>No items found.</ComboboxEmpty>
<ComboboxList>
{(item) => (
<ComboboxItem key={item} value={item}>
{item}
</ComboboxItem>
)}
</ComboboxList>
</ComboboxContent>
</Combobox>
<Field data-invalid>
<FieldLabel htmlFor="combobox-multiple-invalid">
Frameworks
</FieldLabel>
<Combobox
multiple
autoHighlight
items={frameworks}
defaultValue={[frameworks[0], frameworks[1], frameworks[2]]}
>
<ComboboxChips ref={anchor2}>
<ComboboxValue>
{(values) => (
<React.Fragment>
{values.map((value: string) => (
<ComboboxChip key={value}>{value}</ComboboxChip>
))}
<ComboboxChipsInput
id="combobox-multiple-invalid"
aria-invalid
/>
</React.Fragment>
)}
</ComboboxValue>
</ComboboxChips>
<ComboboxContent anchor={anchor2}>
<ComboboxEmpty>No items found.</ComboboxEmpty>
<ComboboxList>
{(item) => (
<ComboboxItem key={item} value={item}>
{item}
</ComboboxItem>
)}
</ComboboxList>
</ComboboxContent>
</Combobox>
<FieldDescription>
Please select at least one framework.
</FieldDescription>
<FieldError errors={[{ message: "This field is required." }]} />
</Field>
</div>
</Example>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does ComboboxMultipleInvalid() do?
ComboboxMultipleInvalid() is a function in the ui codebase, defined in apps/v4/registry/bases/radix/examples/combobox-example.tsx.
Where is ComboboxMultipleInvalid() defined?
ComboboxMultipleInvalid() is defined in apps/v4/registry/bases/radix/examples/combobox-example.tsx at line 974.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free