Home / File/ select-invalid.tsx — ui Source File

select-invalid.tsx — ui Source File

Architecture documentation for select-invalid.tsx, a tsx file in the ui codebase. 2 imports, 0 dependents.

File tsx DocumentationAtlas ContentSourcing 2 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  35fe58a4_e602_9ea5_72d1_283f5cb1fc33["select-invalid.tsx"]
  e6c524b5_d047_d4f9_50b2_7f100d612cb2["field"]
  35fe58a4_e602_9ea5_72d1_283f5cb1fc33 --> e6c524b5_d047_d4f9_50b2_7f100d612cb2
  9e04de79_0b92_db17_84ad_a529f1990b55["select"]
  35fe58a4_e602_9ea5_72d1_283f5cb1fc33 --> 9e04de79_0b92_db17_84ad_a529f1990b55
  style 35fe58a4_e602_9ea5_72d1_283f5cb1fc33 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { Field, FieldError, FieldLabel } from "@/examples/base/ui/field"
import {
  Select,
  SelectContent,
  SelectGroup,
  SelectItem,
  SelectTrigger,
  SelectValue,
} from "@/examples/base/ui/select"

const items = [
  { label: "Select a fruit", value: null },
  { label: "Apple", value: "apple" },
  { label: "Banana", value: "banana" },
  { label: "Blueberry", value: "blueberry" },
]

export function SelectInvalid() {
  return (
    <Field data-invalid className="w-full max-w-48">
      <FieldLabel>Fruit</FieldLabel>
      <Select items={items}>
        <SelectTrigger aria-invalid>
          <SelectValue />
        </SelectTrigger>
        <SelectContent>
          <SelectGroup>
            {items.map((item) => (
              <SelectItem key={item.value} value={item.value}>
                {item.label}
              </SelectItem>
            ))}
          </SelectGroup>
        </SelectContent>
      </Select>
      <FieldError>Please select a fruit.</FieldError>
    </Field>
  )
}

Subdomains

Functions

Dependencies

  • field
  • select

Frequently Asked Questions

What does select-invalid.tsx do?
select-invalid.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, ContentSourcing subdomain.
What functions are defined in select-invalid.tsx?
select-invalid.tsx defines 1 function(s): SelectInvalid.
What does select-invalid.tsx depend on?
select-invalid.tsx imports 2 module(s): field, select.
Where is select-invalid.tsx in the architecture?
select-invalid.tsx is located at apps/v4/examples/base/select-invalid.tsx (domain: DocumentationAtlas, subdomain: ContentSourcing, directory: apps/v4/examples/base).

Analyze Your Own Codebase

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

Try Supermodel Free