Home / File/ field-radio.tsx — ui Source File

field-radio.tsx — ui Source File

Architecture documentation for field-radio.tsx, a tsx file in the ui codebase. 2 imports, 0 dependents.

File tsx DocumentationAtlas SearchAPI 2 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  fe08b203_45b3_2ecd_ea12_253facedf64b["field-radio.tsx"]
  b5f68436_cf6b_fba3_fb29_abf27fd13442["field"]
  fe08b203_45b3_2ecd_ea12_253facedf64b --> b5f68436_cf6b_fba3_fb29_abf27fd13442
  49324200_de94_25c3_5155_08b8655881b5["radio-group"]
  fe08b203_45b3_2ecd_ea12_253facedf64b --> 49324200_de94_25c3_5155_08b8655881b5
  style fe08b203_45b3_2ecd_ea12_253facedf64b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

export function FieldRadio() {
  return (
    <FieldSet className="w-full max-w-xs">
      <FieldLegend variant="label">Subscription Plan</FieldLegend>
      <FieldDescription>
        Yearly and lifetime plans offer significant savings.
      </FieldDescription>
      <RadioGroup defaultValue="monthly">
        <Field orientation="horizontal">
          <RadioGroupItem value="monthly" id="plan-monthly" />
          <FieldLabel htmlFor="plan-monthly" className="font-normal">
            Monthly ($9.99/month)
          </FieldLabel>
        </Field>
        <Field orientation="horizontal">
          <RadioGroupItem value="yearly" id="plan-yearly" />
          <FieldLabel htmlFor="plan-yearly" className="font-normal">
            Yearly ($99.99/year)
          </FieldLabel>
        </Field>
        <Field orientation="horizontal">
          <RadioGroupItem value="lifetime" id="plan-lifetime" />
          <FieldLabel htmlFor="plan-lifetime" className="font-normal">
            Lifetime ($299.99)
          </FieldLabel>
        </Field>
      </RadioGroup>
    </FieldSet>
  )
}

Subdomains

Functions

Dependencies

  • field
  • radio-group

Frequently Asked Questions

What does field-radio.tsx do?
field-radio.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, SearchAPI subdomain.
What functions are defined in field-radio.tsx?
field-radio.tsx defines 1 function(s): FieldRadio.
What does field-radio.tsx depend on?
field-radio.tsx imports 2 module(s): field, radio-group.
Where is field-radio.tsx in the architecture?
field-radio.tsx is located at apps/v4/examples/radix/field-radio.tsx (domain: DocumentationAtlas, subdomain: SearchAPI, 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