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 DocumentationAtlas Changelog 2 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  a93dacaf_ea4a_191f_7fd6_72efc691876b["field-choice-card.tsx"]
  169af77a_46c3_8fec_4801_f34a0f1a3471["field"]
  a93dacaf_ea4a_191f_7fd6_72efc691876b --> 169af77a_46c3_8fec_4801_f34a0f1a3471
  a3246e53_c55c_1cf0_424d_b2142e1739ab["radio-group"]
  a93dacaf_ea4a_191f_7fd6_72efc691876b --> a3246e53_c55c_1cf0_424d_b2142e1739ab
  style a93dacaf_ea4a_191f_7fd6_72efc691876b 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 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">
                <RadioGroupItem
                  value="kubernetes"
                  id="kubernetes-r2h"
                  aria-label="Kubernetes"
                />
                <FieldContent>
                  <FieldTitle>Kubernetes</FieldTitle>
                  <FieldDescription>
                    Run GPU workloads on a K8s configured cluster.
                  </FieldDescription>
                </FieldContent>
              </Field>
            </FieldLabel>
            <FieldLabel htmlFor="vm-z4k">
              <Field orientation="horizontal">
                <RadioGroupItem
                  value="vm"
                  id="vm-z4k"
                  aria-label="Virtual Machine"
                />
                <FieldContent>
                  <FieldTitle>Virtual Machine</FieldTitle>
                  <FieldDescription>
                    Access a VM configured cluster to run workloads.
                  </FieldDescription>
                </FieldContent>
              </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 DocumentationAtlas domain, Changelog 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/app/(app)/(root)/components/field-choice-card.tsx (domain: DocumentationAtlas, subdomain: Changelog, directory: apps/v4/app/(app)/(root)/components).

Analyze Your Own Codebase

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

Try Supermodel Free