Skip to main content

LTR & RTL Modes

Dasha supports both LTR (Left-to-Right) and RTL (Right-to-Left) layout directions to ensure accessibility for languages with different reading orientations.


Switching Between Modes

You can switch between LTR and RTL modes programmatically or through user interaction.

1. HTML dir Attribute

Set the dir attribute in the <html> tag:

<html lang="en" dir="ltr">
<!-- or -->
<html lang="en" dir="rtl">