Style
/ API Reference / PluginsStyle
/ API Reference / Pluginsrtl
This plugin transforms styles for right-to-left (RTL) layouts.
The Gist
import { rtlPlugin } from '@weser/style'
const plugin = rtlPlugin('rtl')
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
| defaultDirection | string | '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.
© 2024-present Robin Weser. All Rights Reserved.