Style
/ API Reference / Plugins
Style
/ API Reference / Plugins

rtl

This plugin transforms styles for right-to-left (RTL) layouts.

The Gist

import { rtlPlugin } from '@weser/style'

const plugin = rtlPlugin('rtl')

Parameters

ParameterTypeDefaultDescription
defaultDirectionstring'rtl'The default direction to use. When set to 'rtl', styles are transformed.

Returns

(Plugin) A plugin function that can be passed to the createRenderer function.

On this page