Home / Function/ RadioGroupRtl() — ui Function Reference

RadioGroupRtl() — ui Function Reference

Architecture documentation for the RadioGroupRtl() function in radio-group-rtl.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  4aa88255_1a75_dc4d_ee67_b7ff838b4dab["RadioGroupRtl()"]
  454b3336_29f3_4eb5_0c85_fa4357663b9f["radio-group-rtl.tsx"]
  4aa88255_1a75_dc4d_ee67_b7ff838b4dab -->|defined in| 454b3336_29f3_4eb5_0c85_fa4357663b9f
  style 4aa88255_1a75_dc4d_ee67_b7ff838b4dab fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/radix/radio-group-rtl.tsx lines 53–89

export function RadioGroupRtl() {
  const { dir, t } = useTranslation(translations, "ar")

  return (
    <RadioGroup defaultValue="comfortable" className="w-fit" dir={dir}>
      <Field orientation="horizontal">
        <RadioGroupItem value="default" id="r1-rtl" dir={dir} />
        <FieldContent>
          <FieldLabel htmlFor="r1-rtl" dir={dir}>
            {t.default}
          </FieldLabel>
          <FieldDescription dir={dir}>{t.defaultDescription}</FieldDescription>
        </FieldContent>
      </Field>
      <Field orientation="horizontal">
        <RadioGroupItem value="comfortable" id="r2-rtl" dir={dir} />
        <FieldContent>
          <FieldLabel htmlFor="r2-rtl" dir={dir}>
            {t.comfortable}
          </FieldLabel>
          <FieldDescription dir={dir}>
            {t.comfortableDescription}
          </FieldDescription>
        </FieldContent>
      </Field>
      <Field orientation="horizontal">
        <RadioGroupItem value="compact" id="r3-rtl" dir={dir} />
        <FieldContent>
          <FieldLabel htmlFor="r3-rtl" dir={dir}>
            {t.compact}
          </FieldLabel>
          <FieldDescription dir={dir}>{t.compactDescription}</FieldDescription>
        </FieldContent>
      </Field>
    </RadioGroup>
  )
}

Subdomains

Frequently Asked Questions

What does RadioGroupRtl() do?
RadioGroupRtl() is a function in the ui codebase, defined in apps/v4/examples/radix/radio-group-rtl.tsx.
Where is RadioGroupRtl() defined?
RadioGroupRtl() is defined in apps/v4/examples/radix/radio-group-rtl.tsx at line 53.

Analyze Your Own Codebase

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

Try Supermodel Free