RTL
This plugin sets text direction to RTL on configured locales.
Usage
npm i -D @vuepress/plugin-rtl@nextimport { rtlPlugin } from '@vuepress/plugin-rtl'
export default {
plugins: [
rtlPlugin({
// options
locales: ['/ar/'],
}),
],
}Demo
Options
locales
- Type:
string[] - Default:
['/'] - Details: RTL locale paths to enable RTL layout.
selector
Type:
SelectorOptionsinterface SelectorOptions { [cssSelector: string]: { [attr: string]: string } }Default:
{ 'html': { dir: 'rtl' } }Details: Selector configuration to enable RTL layout. The default settings mean that the
dirattribute of thehtmlelement will be set tortlin RTL locales.
