Right-to-left

Right-to-Left Layouts

NgNova UI components mirror under dir="rtl" without a provider or CDK dependency: spacing and positioning use logical start and end utilities, directional icons flip, and horizontal arrow keys follow the visual direction.

Live direction scope

Right-to-left preview

Every control below sits inside dir="rtl". Try the arrow keys in the tabs, tree, and calendar.

نظرة عامة

سنرسل الفواتير إلى هذا العنوان.

16 / 40

Enable right-to-left

Set the document direction and language. Translate built-in accessible names with the per-component labels providers.

HTML example.html
1
2
3
4
5
6
7
8
<!-- index.html -->
<html lang="ar" dir="rtl">

<!-- or scope a single region -->
<section dir="rtl" lang="ar">
  <ui-tabs [tabs]="tabs" [(active)]="active" />
  <ui-drawer position="end" [(open)]="filtersOpen">...</ui-drawer>
</section>

Set the direction

Set dir and lang on the html element, or on any container for a mixed-direction page. Components read the computed direction when they handle keys.

  • dir="rtl" on html, a layout shell, or a single region
  • CSS direction: rtl is honored too
  • No Directionality provider or @angular/cdk required

Logical options

Options named start and end follow the text direction. left and right stay physical for layouts that must not mirror.

  • Drawer position 'start' | 'end'
  • Toast position 'top-end' | 'bottom-end'
  • Table and Tree Table column align 'start' | 'end'
  • Menu align 'start' | 'end', Table sticky 'start' | 'end'

Keyboard

Following the WAI-ARIA Authoring Practices, ArrowLeft and ArrowRight swap meaning in right-to-left layouts.

  • Tabs: ArrowLeft moves to the next tab
  • Tree and Tree Table: ArrowLeft expands, ArrowRight collapses or moves to the parent
  • Date Picker: ArrowLeft moves to the next day