field-select.tsx — ui Source File
Architecture documentation for field-select.tsx, a tsx file in the ui codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 82691807_ca3b_cd9c_111d_55b86bc23077["field-select.tsx"] e6c524b5_d047_d4f9_50b2_7f100d612cb2["field"] 82691807_ca3b_cd9c_111d_55b86bc23077 --> e6c524b5_d047_d4f9_50b2_7f100d612cb2 9e04de79_0b92_db17_84ad_a529f1990b55["select"] 82691807_ca3b_cd9c_111d_55b86bc23077 --> 9e04de79_0b92_db17_84ad_a529f1990b55 style 82691807_ca3b_cd9c_111d_55b86bc23077 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { Field, FieldDescription, FieldLabel } from "@/examples/base/ui/field"
import {
Select,
SelectContent,
SelectGroup,
SelectItem,
SelectTrigger,
SelectValue,
} from "@/examples/base/ui/select"
const items = [
{ label: "Choose department", value: null },
{ label: "Engineering", value: "engineering" },
{ label: "Design", value: "design" },
{ label: "Marketing", value: "marketing" },
{ label: "Sales", value: "sales" },
{ label: "Customer Support", value: "support" },
{ label: "Human Resources", value: "hr" },
{ label: "Finance", value: "finance" },
{ label: "Operations", value: "operations" },
]
export default function FieldSelect() {
return (
<Field className="w-full max-w-xs">
<FieldLabel>Department</FieldLabel>
<Select items={items}>
<SelectTrigger>
<SelectValue />
</SelectTrigger>
<SelectContent>
<SelectGroup>
{items.map((item) => (
<SelectItem key={item.value} value={item.value}>
{item.label}
</SelectItem>
))}
</SelectGroup>
</SelectContent>
</Select>
<FieldDescription>
Select your department or area of work.
</FieldDescription>
</Field>
)
}
Domain
Subdomains
Functions
Dependencies
- field
- select
Source
Frequently Asked Questions
What does field-select.tsx do?
field-select.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, SearchAPI subdomain.
What functions are defined in field-select.tsx?
field-select.tsx defines 1 function(s): FieldSelect.
What does field-select.tsx depend on?
field-select.tsx imports 2 module(s): field, select.
Where is field-select.tsx in the architecture?
field-select.tsx is located at apps/v4/examples/base/field-select.tsx (domain: DocumentationAtlas, subdomain: SearchAPI, 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