Home / Function/ CheckboxRtl() — ui Function Reference

CheckboxRtl() — ui Function Reference

Architecture documentation for the CheckboxRtl() function in checkbox-rtl.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  830e9928_524d_14d0_25d1_a00da018a627["CheckboxRtl()"]
  e3f6925b_1552_4e2c_714a_2d6251b86936["checkbox-rtl.tsx"]
  830e9928_524d_14d0_25d1_a00da018a627 -->|defined in| e3f6925b_1552_4e2c_714a_2d6251b86936
  style 830e9928_524d_14d0_25d1_a00da018a627 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/radix/checkbox-rtl.tsx lines 55–96

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

  return (
    <FieldGroup className="max-w-sm" dir={dir}>
      <Field orientation="horizontal">
        <Checkbox id="terms-checkbox-rtl" name="terms-checkbox" />
        <Label htmlFor="terms-checkbox-rtl">{t.acceptTerms}</Label>
      </Field>
      <Field orientation="horizontal">
        <Checkbox
          id="terms-checkbox-2-rtl"
          name="terms-checkbox-2"
          defaultChecked
        />
        <FieldContent>
          <FieldLabel htmlFor="terms-checkbox-2-rtl">
            {t.acceptTerms}
          </FieldLabel>
          <FieldDescription>{t.acceptTermsDescription}</FieldDescription>
        </FieldContent>
      </Field>
      <Field orientation="horizontal" data-disabled>
        <Checkbox id="toggle-checkbox-rtl" name="toggle-checkbox" disabled />
        <FieldLabel htmlFor="toggle-checkbox-rtl">
          {t.enableNotifications}
        </FieldLabel>
      </Field>
      <FieldLabel>
        <Field orientation="horizontal">
          <Checkbox id="toggle-checkbox-2" name="toggle-checkbox-2" />
          <FieldContent>
            <FieldTitle>{t.enableNotifications}</FieldTitle>
            <FieldDescription>
              {t.enableNotificationsDescription}
            </FieldDescription>
          </FieldContent>
        </Field>
      </FieldLabel>
    </FieldGroup>
  )
}

Subdomains

Frequently Asked Questions

What does CheckboxRtl() do?
CheckboxRtl() is a function in the ui codebase, defined in apps/v4/examples/radix/checkbox-rtl.tsx.
Where is CheckboxRtl() defined?
CheckboxRtl() is defined in apps/v4/examples/radix/checkbox-rtl.tsx at line 55.

Analyze Your Own Codebase

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

Try Supermodel Free