Customize
RTL
Arabic, Hebrew, Persian, Urdu: set the page's direction and Moey mirrors itself — layouts, menus, sheets, arrows, sliders, switches and animations.
<html lang="ar" dir="rtl">
That's all. Moey is written with start and end instead of left and right (ms-auto, ps-4, text-start, border-s …), so nothing else changes. Code samples, keys and numbers in code keep reading left to right.
In a right-to-left section
أك
مدفوع
آنا كيم
طلب #10421 · $129.00
<div dir="rtl" lang="ar">
…
</div>
Notice the breadcrumb and pagination arrows point the other way, the switch knob and slider start on the right, and the avatar sits at the start of the row.
Icons that point
Moey flips its own arrows (breadcrumbs, pagination, menus, carousels, list and tree chevrons). For an arrow icon of your own, add rtl-flip and it mirrors in right-to-left only.
rtl-flip
without
<a href="/next">التالي <i class="mi mi-arrow-right rtl-flip"></i></a>
| Use | Instead of |
|---|---|
ms-* · me-* · ps-* · pe-* | left / right margins and padding |
text-start · text-end | text-left / text-right |
start-0 · end-0 · border-s · rounded-s-lg · float-start | left-0 / right-0 and the like |
rtl-flip | mirror a directional icon in right-to-left |