ComboboxInvalid() — ui Function Reference
Architecture documentation for the ComboboxInvalid() function in combobox-example.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 74862d31_a040_73ef_7f05_ed10169a1550["ComboboxInvalid()"] 08c943e1_cbb3_6c4d_0fd2_1693e54a1d0a["combobox-example.tsx"] 74862d31_a040_73ef_7f05_ed10169a1550 -->|defined in| 08c943e1_cbb3_6c4d_0fd2_1693e54a1d0a style 74862d31_a040_73ef_7f05_ed10169a1550 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/bases/base/examples/combobox-example.tsx lines 652–696
function ComboboxInvalid() {
return (
<Example title="Invalid">
<div className="flex flex-col gap-4">
<Combobox items={frameworks}>
<ComboboxInput placeholder="Select a framework" aria-invalid="true" />
<ComboboxContent>
<ComboboxEmpty>No items found.</ComboboxEmpty>
<ComboboxList>
{(item) => (
<ComboboxItem key={item} value={item}>
{item}
</ComboboxItem>
)}
</ComboboxList>
</ComboboxContent>
</Combobox>
<Field data-invalid>
<FieldLabel htmlFor="combobox-framework-invalid">
Framework
</FieldLabel>
<Combobox items={frameworks}>
<ComboboxInput
id="combobox-framework-invalid"
placeholder="Select a framework"
aria-invalid
/>
<ComboboxContent>
<ComboboxEmpty>No items found.</ComboboxEmpty>
<ComboboxList>
{(item) => (
<ComboboxItem key={item} value={item}>
{item}
</ComboboxItem>
)}
</ComboboxList>
</ComboboxContent>
</Combobox>
<FieldDescription>Please select a valid framework.</FieldDescription>
<FieldError errors={[{ message: "This field is required." }]} />
</Field>
</div>
</Example>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does ComboboxInvalid() do?
ComboboxInvalid() is a function in the ui codebase, defined in apps/v4/registry/bases/base/examples/combobox-example.tsx.
Where is ComboboxInvalid() defined?
ComboboxInvalid() is defined in apps/v4/registry/bases/base/examples/combobox-example.tsx at line 652.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free