Home / File/ field-choice-card.tsx — ui Source File

field-choice-card.tsx — ui Source File

Architecture documentation for field-choice-card.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
  b49f8e51_6f05_0d90_f4c9_11dde97fafcb["field-choice-card.tsx"]
  169af77a_46c3_8fec_4801_f34a0f1a3471["field"]
  b49f8e51_6f05_0d90_f4c9_11dde97fafcb --> 169af77a_46c3_8fec_4801_f34a0f1a3471
  a3246e53_c55c_1cf0_424d_b2142e1739ab["radio-group"]
  b49f8e51_6f05_0d90_f4c9_11dde97fafcb --> a3246e53_c55c_1cf0_424d_b2142e1739ab
  style b49f8e51_6f05_0d90_f4c9_11dde97fafcb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import {
  Field,
  FieldContent,
  FieldDescription,
  FieldGroup,
  FieldLabel,
  FieldSet,
  FieldTitle,
} from "@/registry/new-york-v4/ui/field"
import {
  RadioGroup,
  RadioGroupItem,
} from "@/registry/new-york-v4/ui/radio-group"

export default function FieldChoiceCard() {
  return (
    <div className="w-full max-w-md">
      <FieldGroup>
        <FieldSet>
          <FieldLabel htmlFor="compute-environment-p8w">
            Compute Environment
          </FieldLabel>
          <FieldDescription>
            Select the compute environment for your cluster.
          </FieldDescription>
          <RadioGroup defaultValue="kubernetes">
            <FieldLabel htmlFor="kubernetes-r2h">
              <Field orientation="horizontal">
                <FieldContent>
                  <FieldTitle>Kubernetes</FieldTitle>
                  <FieldDescription>
                    Run GPU workloads on a K8s configured cluster.
                  </FieldDescription>
                </FieldContent>
                <RadioGroupItem value="kubernetes" id="kubernetes-r2h" />
              </Field>
            </FieldLabel>
            <FieldLabel htmlFor="vm-z4k">
              <Field orientation="horizontal">
                <FieldContent>
                  <FieldTitle>Virtual Machine</FieldTitle>
                  <FieldDescription>
                    Access a VM configured cluster to run GPU workloads.
                  </FieldDescription>
                </FieldContent>
                <RadioGroupItem value="vm" id="vm-z4k" />
              </Field>
            </FieldLabel>
          </RadioGroup>
        </FieldSet>
      </FieldGroup>
    </div>
  )
}

Subdomains

Functions

Dependencies

  • field
  • radio-group

Frequently Asked Questions

What does field-choice-card.tsx do?
field-choice-card.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-choice-card.tsx?
field-choice-card.tsx defines 1 function(s): FieldChoiceCard.
What does field-choice-card.tsx depend on?
field-choice-card.tsx imports 2 module(s): field, radio-group.
Where is field-choice-card.tsx in the architecture?
field-choice-card.tsx is located at apps/v4/registry/new-york-v4/examples/field-choice-card.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