RTL

Set document direction with HTML so text and direction-aware layout follow the reading order.

Set direction

Use dir="rtl" and the appropriate language tag on the root for a right-to-left page. Use dir on a section for mixed-direction content.

<html lang="ar" dir="rtl">

Check your layout

Use logical CSS properties such as margin-inline-start and text-align: start in your own styles. Check icon direction, visual order, and keyboard navigation with real translated text. Dedicated RTL examples are pending.