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
  e7680a3a_8141_9e08_ec1a_00d56e3624cf["field-radio.tsx"]
  e6c524b5_d047_d4f9_50b2_7f100d612cb2["field"]
  e7680a3a_8141_9e08_ec1a_00d56e3624cf --> e6c524b5_d047_d4f9_50b2_7f100d612cb2
  654cf81d_2869_1e7e_dc6d_1a0b30a54a2a["radio-group"]
  e7680a3a_8141_9e08_ec1a_00d56e3624cf --> 654cf81d_2869_1e7e_dc6d_1a0b30a54a2a
  style e7680a3a_8141_9e08_ec1a_00d56e3624cf fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import {
  Field,
  FieldDescription,
  FieldLabel,
  FieldLegend,
  FieldSet,
} from "@/examples/base/ui/field"
import { RadioGroup, RadioGroupItem } from "@/examples/base/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/base/field-radio.tsx (domain: DocumentationAtlas, subdomain: SearchAPI, directory: apps/v4/examples/base).

Analyze Your Own Codebase

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

Try Supermodel Free