A simple addon for a storybook rtl-toggle
First install the dependencies
npm install -D storybook-addon-dir
yarn add -D storybook-addon-dir
pnpm add -D storybook-addon-dir
Then add the addon to your main.(js|ts) storybook file
// main.ts
const config: StorybookConfig = {
addons: [
'storybook-addon-dir',
...
],
...
}
export default config
The addon adds a button to the tool bar, at the top: