Home / Function/ ComboboxInvalid() — ui Function Reference

ComboboxInvalid() — ui Function Reference

Architecture documentation for the ComboboxInvalid() function in combobox-example.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  dbade381_1280_b79c_86e7_71852966bfc4["ComboboxInvalid()"]
  3abbb5d0_a426_2d0f_1c5d_dd3e5ea603b4["combobox-example.tsx"]
  dbade381_1280_b79c_86e7_71852966bfc4 -->|defined in| 3abbb5d0_a426_2d0f_1c5d_dd3e5ea603b4
  style dbade381_1280_b79c_86e7_71852966bfc4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/radix/examples/combobox-example.tsx lines 615–659

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>
  )
}

Subdomains

Frequently Asked Questions

What does ComboboxInvalid() do?
ComboboxInvalid() is a function in the ui codebase, defined in apps/v4/registry/bases/radix/examples/combobox-example.tsx.
Where is ComboboxInvalid() defined?
ComboboxInvalid() is defined in apps/v4/registry/bases/radix/examples/combobox-example.tsx at line 615.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free