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
  a27307e3_193f_9338_08ff_d101c40ed442["field-choice-card.tsx"]
  b5f68436_cf6b_fba3_fb29_abf27fd13442["field"]
  a27307e3_193f_9338_08ff_d101c40ed442 --> b5f68436_cf6b_fba3_fb29_abf27fd13442
  49324200_de94_25c3_5155_08b8655881b5["radio-group"]
  a27307e3_193f_9338_08ff_d101c40ed442 --> 49324200_de94_25c3_5155_08b8655881b5
  style a27307e3_193f_9338_08ff_d101c40ed442 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import {
  Field,
  FieldContent,
  FieldDescription,
  FieldGroup,
  FieldLabel,
  FieldLegend,
  FieldSet,
  FieldTitle,
} from "@/examples/radix/ui/field"
import { RadioGroup, RadioGroupItem } from "@/examples/radix/ui/radio-group"

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

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/examples/radix/field-choice-card.tsx (domain: DocumentationAtlas, subdomain: Changelog, directory: apps/v4/examples/radix).

Analyze Your Own Codebase

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

Try Supermodel Free