Home / Function/ ToggleGroupRtl() — ui Function Reference

ToggleGroupRtl() — ui Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  55834852_bab9_2a05_8ffd_b5da4e3d962b["ToggleGroupRtl()"]
  79dfcd12_3d41_41e8_9984_50fd4ac8ac61["toggle-group-rtl.tsx"]
  55834852_bab9_2a05_8ffd_b5da4e3d962b -->|defined in| 79dfcd12_3d41_41e8_9984_50fd4ac8ac61
  style 55834852_bab9_2a05_8ffd_b5da4e3d962b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/base/toggle-group-rtl.tsx lines 41–57

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

  return (
    <ToggleGroup variant="outline" defaultValue={["list"]} dir={dir}>
      <ToggleGroupItem value="list" aria-label={t.list}>
        {t.list}
      </ToggleGroupItem>
      <ToggleGroupItem value="grid" aria-label={t.grid}>
        {t.grid}
      </ToggleGroupItem>
      <ToggleGroupItem value="cards" aria-label={t.cards}>
        {t.cards}
      </ToggleGroupItem>
    </ToggleGroup>
  )
}

Subdomains

Frequently Asked Questions

What does ToggleGroupRtl() do?
ToggleGroupRtl() is a function in the ui codebase, defined in apps/v4/examples/base/toggle-group-rtl.tsx.
Where is ToggleGroupRtl() defined?
ToggleGroupRtl() is defined in apps/v4/examples/base/toggle-group-rtl.tsx at line 41.

Analyze Your Own Codebase

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

Try Supermodel Free