Home / Function/ SelectInvalid() — ui Function Reference

SelectInvalid() — ui Function Reference

Architecture documentation for the SelectInvalid() function in select-example.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  3fc65662_4b15_6cfb_7a0f_9fac7b5e1717["SelectInvalid()"]
  45dbd80e_4241_7e94_2ac4_8c9f125488aa["select-example.tsx"]
  3fc65662_4b15_6cfb_7a0f_9fac7b5e1717 -->|defined in| 45dbd80e_4241_7e94_2ac4_8c9f125488aa
  style 3fc65662_4b15_6cfb_7a0f_9fac7b5e1717 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/radix/examples/select-example.tsx lines 375–414

function SelectInvalid() {
  return (
    <Example title="Invalid">
      <div className="flex flex-col gap-4">
        <Select>
          <SelectTrigger aria-invalid="true">
            <SelectValue placeholder="Select a fruit" />
          </SelectTrigger>
          <SelectContent>
            <SelectGroup>
              <SelectItem value="apple">Apple</SelectItem>
              <SelectItem value="banana">Banana</SelectItem>
              <SelectItem value="blueberry">Blueberry</SelectItem>
              <SelectItem value="grapes">Grapes</SelectItem>
              <SelectItem value="pineapple">Pineapple</SelectItem>
            </SelectGroup>
          </SelectContent>
        </Select>
        <Field data-invalid>
          <FieldLabel htmlFor="select-fruit-invalid">Favorite Fruit</FieldLabel>
          <Select>
            <SelectTrigger id="select-fruit-invalid" aria-invalid>
              <SelectValue placeholder="Select a fruit" />
            </SelectTrigger>
            <SelectContent>
              <SelectGroup>
                <SelectItem value="apple">Apple</SelectItem>
                <SelectItem value="banana">Banana</SelectItem>
                <SelectItem value="blueberry">Blueberry</SelectItem>
                <SelectItem value="grapes">Grapes</SelectItem>
                <SelectItem value="pineapple">Pineapple</SelectItem>
              </SelectGroup>
            </SelectContent>
          </Select>
          <FieldError errors={[{ message: "Please select a valid fruit." }]} />
        </Field>
      </div>
    </Example>
  )
}

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free