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
  a3d60272_05ce_8a7e_d119_d13ff53ce3b3["FieldChoiceCard()"]
  a27307e3_193f_9338_08ff_d101c40ed442["field-choice-card.tsx"]
  a3d60272_05ce_8a7e_d119_d13ff53ce3b3 -->|defined in| a27307e3_193f_9338_08ff_d101c40ed442
  style a3d60272_05ce_8a7e_d119_d13ff53ce3b3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/radix/field-choice-card.tsx lines 13–48

export default function FieldChoiceCard() {
  return (
    <FieldGroup className="w-full max-w-xs">
      <FieldSet>
        <FieldLegend variant="label">Compute Environment</FieldLegend>
        <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 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 cluster to run GPU workloads.
                </FieldDescription>
              </FieldContent>
              <RadioGroupItem value="vm" id="vm-z4k" />
            </Field>
          </FieldLabel>
        </RadioGroup>
      </FieldSet>
    </FieldGroup>
  )
}

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free