RTL
We recommend first reading Bootstrap's documentation to become familiar with how Bootstrap's RTL support works.
In order to enable RTL support with React-Bootstrap, follow these steps:
- Set
dir="rtl"
on the<html>
element. - Add an appropriate lang attribute, like
lang="ar"
, on the<html>
element. - Include the RTL version of the CSS
bootstrap.rtl.min.css
in your project. - Set
dir="rtl"
in aThemeProvider
:
<ThemeProvider dir="rtl">
<App />
</ThemeProvider>