dir - speced/respec GitHub Wiki

dir

Type: string Default: "ltr"

Sets the text directionality of the document. Corresponds to the dir attribute on the <html> element.

Basic usage

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

Notes

  • Set directly on the <html> element, not in respecConfig
  • Always pair with the correct lang attribute
  • Values: "ltr" (left-to-right), "rtl" (right-to-left), "auto"
⚠️ **GitHub.com Fallback** ⚠️