
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
storybook-addon-rtl
Advanced tools
Storybook Addon RTL allows you to switch to right-to-left flow in your stories in Storybook.
This addon has been tested with Storybook for React, Vue and Angular. It should also work in other frameworks.

This is a permanent fork of unindented/storybook-addon-rtl, which is now archived. Thanks for
unindentedfor the original code!
npm i --save-dev storybook-addon-rtl
Add the addon to the addons array in .storybook/main.js
module.exports = {
/// other storybook configuration
addons: [
// other addons here
"storybook-addon-rtl",
],
};
Then write your stories normally:
import React from 'react'
import MyComponent from './MyComponent'
export default {
title: 'My Component',
component: MyComponent
};
export const default = {};
export const rtlParameter = {
// Optionally include direction as story parameter
// Note: usually, globals should not be set at the story level because this disables the toolbar toggle button.
globals: {
addonRtl: 'rtl'
},
}
You can set the direction using query params in the URL. This is useful for things like e2e tests.
Just add &globals=addonRtl:rtl or &globals=addonRtl:ltr to the end of the URL:
storybook.example.com/?path=/story/button--standard&globals=addonRtl:rtl
This addon uses the Storybook Globals API to set the direction. This allows anyone to write custom code that can set or react to changes in the direction. This is especially useful when working with some libraries that need to know about the current direction. See ./src/stories/CustomDecorator.stories.tsx for an example.
git clone https://github.com/literalpie/storybook-addon-rtl.gitCopyright (c) 2025 Benjamin Kindle (@literalpie). This is free software, and may be redistributed under the terms specified in the LICENSE file.
FAQs
Right-to-left addon for Storybook.
The npm package storybook-addon-rtl receives a total of 34,324 weekly downloads. As such, storybook-addon-rtl popularity was classified as popular.
We found that storybook-addon-rtl demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.