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

Relationship Graph

Source Code

apps/v4/registry/new-york-v4/examples/field-choice-card.tsx lines 15–54

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

Frequently Asked Questions

What does FieldChoiceCard() do?
FieldChoiceCard() is a function in the ui codebase, defined in apps/v4/registry/new-york-v4/examples/field-choice-card.tsx.
Where is FieldChoiceCard() defined?
FieldChoiceCard() is defined in apps/v4/registry/new-york-v4/examples/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