Browser API

HTML dir attribute

Specify the base text direction for a document or element.

Formal Syntax & Structure

react syntaxreact
dir="ltr" | "rtl" | "auto"

Working Example

Example Snippetreact
<section dir="rtl">...</section>
React Reference