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

field-select.tsx — ui Source File

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

File tsx ComponentRegistry ChartRegistry 2 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  b9b1267e_e471_f4ee_0b14_2f608238e9bf["field-select.tsx"]
  169af77a_46c3_8fec_4801_f34a0f1a3471["field"]
  b9b1267e_e471_f4ee_0b14_2f608238e9bf --> 169af77a_46c3_8fec_4801_f34a0f1a3471
  c2fa7225_1ddd_1cbc_8810_ee5e42af14d6["select"]
  b9b1267e_e471_f4ee_0b14_2f608238e9bf --> c2fa7225_1ddd_1cbc_8810_ee5e42af14d6
  style b9b1267e_e471_f4ee_0b14_2f608238e9bf fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import {
  Field,
  FieldDescription,
  FieldLabel,
} from "@/registry/new-york-v4/ui/field"
import {
  Select,
  SelectContent,
  SelectItem,
  SelectTrigger,
  SelectValue,
} from "@/registry/new-york-v4/ui/select"

export default function FieldSelect() {
  return (
    <div className="w-full max-w-md">
      <Field>
        <FieldLabel>Department</FieldLabel>
        <Select>
          <SelectTrigger>
            <SelectValue placeholder="Choose department" />
          </SelectTrigger>
          <SelectContent>
            <SelectItem value="engineering">Engineering</SelectItem>
            <SelectItem value="design">Design</SelectItem>
            <SelectItem value="marketing">Marketing</SelectItem>
            <SelectItem value="sales">Sales</SelectItem>
            <SelectItem value="support">Customer Support</SelectItem>
            <SelectItem value="hr">Human Resources</SelectItem>
            <SelectItem value="finance">Finance</SelectItem>
            <SelectItem value="operations">Operations</SelectItem>
          </SelectContent>
        </Select>
        <FieldDescription>
          Select your department or area of work.
        </FieldDescription>
      </Field>
    </div>
  )
}

Subdomains

Functions

Dependencies

  • field
  • select

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 ComponentRegistry domain, ChartRegistry 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/registry/new-york-v4/examples/field-select.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/new-york-v4/examples).

Analyze Your Own Codebase

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

Try Supermodel Free