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>Specify the base text direction for a document or element.
dir="ltr" | "rtl" | "auto"<section dir="rtl">...</section>