Direction Component
A utility component that provides LTR/RTL text direction context to child components using Radix UI Direction primitives.
Left-to-Right (LTR)
Default direction for most Western languages.
Current direction: ltr
This content flows from left to right. This is the default direction for English and most European languages.
Right-to-Left (RTL)
Direction for Arabic, Hebrew, and other RTL languages.
Current direction: rtl
This content flows from right to left. This is used for Arabic, Hebrew, and other RTL languages.
Toggle Direction
Dynamically switch between LTR and RTL directions.
Current direction: ltr
This text will reflow when direction changes. Useful for internationalization and RTL language support.