arcade-storybook-addon-rtl

An addon that adds an RTL toggle to the Storybook top toolbar.

Usage no npm install needed!

<script type="module">
  import arcadeStorybookAddonRtl from 'https://cdn.skypack.dev/arcade-storybook-addon-rtl';
</script>

README

Arcade Storybook Addon RTL

An addon that adds an RTL toggle to the Storybook top toolbar.

The only purpose of this addon is to switch dir attribute on the <body> tag from ltr to rtl and back.

Using the addon

Install the package:

yarn add --dev arcade-storybook-addon-rtl

Add the addon to your storybook main.js file:

module.exports = {
    stories: [...],
    addons: [
        'arcade-storybook-addon-rtl'
    ],
};

Enjoy :)