Home / File/ radio-group-example.tsx — ui Source File

radio-group-example.tsx — ui Source File

Architecture documentation for radio-group-example.tsx, a tsx file in the ui codebase. 3 imports, 0 dependents.

File tsx ComponentRegistry UIPrimitives 3 imports 7 functions

Entity Profile

Dependency Diagram

graph LR
  e09732a2_ec70_d8cf_a515_889fb2bd98e8["radio-group-example.tsx"]
  f56be340_a522_c6f7_dec3_5906873d14c8["example"]
  e09732a2_ec70_d8cf_a515_889fb2bd98e8 --> f56be340_a522_c6f7_dec3_5906873d14c8
  8a527dea_9425_3da4_8ceb_ec3058568dc9["field"]
  e09732a2_ec70_d8cf_a515_889fb2bd98e8 --> 8a527dea_9425_3da4_8ceb_ec3058568dc9
  2fab7032_0940_d3ec_8fa0_41df24affbf1["radio-group"]
  e09732a2_ec70_d8cf_a515_889fb2bd98e8 --> 2fab7032_0940_d3ec_8fa0_41df24affbf1
  style e09732a2_ec70_d8cf_a515_889fb2bd98e8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import {
  Example,
  ExampleWrapper,
} from "@/registry/bases/base/components/example"
import {
  Field,
  FieldContent,
  FieldDescription,
  FieldLabel,
  FieldLegend,
  FieldSet,
} from "@/registry/bases/base/ui/field"
import {
  RadioGroup,
  RadioGroupItem,
} from "@/registry/bases/base/ui/radio-group"

export default function RadioGroupExample() {
  return (
    <ExampleWrapper>
      <RadioGroupBasic />
      <RadioGroupWithDescriptions />
      <RadioGroupWithFieldSet />
      <RadioGroupGrid />
      <RadioGroupDisabled />
      <RadioGroupInvalid />
    </ExampleWrapper>
  )
}

function RadioGroupBasic() {
  return (
    <Example title="Basic">
      <RadioGroup defaultValue="comfortable">
        <Field orientation="horizontal">
          <RadioGroupItem value="default" id="r1" />
          <FieldLabel htmlFor="r1" className="font-normal">
            Default
          </FieldLabel>
        </Field>
        <Field orientation="horizontal">
          <RadioGroupItem value="comfortable" id="r2" />
          <FieldLabel htmlFor="r2" className="font-normal">
            Comfortable
          </FieldLabel>
        </Field>
        <Field orientation="horizontal">
          <RadioGroupItem value="compact" id="r3" />
          <FieldLabel htmlFor="r3" className="font-normal">
            Compact
          </FieldLabel>
        </Field>
      </RadioGroup>
    </Example>
  )
}

function RadioGroupWithDescriptions() {
  return (
    <Example title="With Descriptions">
// ... (163 more lines)

Subdomains

Dependencies

  • example
  • field
  • radio-group

Frequently Asked Questions

What does radio-group-example.tsx do?
radio-group-example.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, UIPrimitives subdomain.
What functions are defined in radio-group-example.tsx?
radio-group-example.tsx defines 7 function(s): RadioGroupBasic, RadioGroupDisabled, RadioGroupExample, RadioGroupGrid, RadioGroupInvalid, RadioGroupWithDescriptions, RadioGroupWithFieldSet.
What does radio-group-example.tsx depend on?
radio-group-example.tsx imports 3 module(s): example, field, radio-group.
Where is radio-group-example.tsx in the architecture?
radio-group-example.tsx is located at apps/v4/registry/bases/base/examples/radio-group-example.tsx (domain: ComponentRegistry, subdomain: UIPrimitives, directory: apps/v4/registry/bases/base/examples).

Analyze Your Own Codebase

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

Try Supermodel Free