Home / Function/ FieldChoiceCard() — ui Function Reference

FieldChoiceCard() — ui Function Reference

Architecture documentation for the FieldChoiceCard() function in field-choice-card.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  b2aa5010_aa49_5368_3266_af6b10f8121a["FieldChoiceCard()"]
  a93dacaf_ea4a_191f_7fd6_72efc691876b["field-choice-card.tsx"]
  b2aa5010_aa49_5368_3266_af6b10f8121a -->|defined in| a93dacaf_ea4a_191f_7fd6_72efc691876b
  style b2aa5010_aa49_5368_3266_af6b10f8121a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/app/(app)/(root)/components/field-choice-card.tsx lines 15–62

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

Frequently Asked Questions

What does FieldChoiceCard() do?
FieldChoiceCard() is a function in the ui codebase, defined in apps/v4/app/(app)/(root)/components/field-choice-card.tsx.
Where is FieldChoiceCard() defined?
FieldChoiceCard() is defined in apps/v4/app/(app)/(root)/components/field-choice-card.tsx at line 15.

Analyze Your Own Codebase

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

Try Supermodel Free