JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 17041
  • Score
    100M100P100Q155431F
  • License MIT

An addon to toggle between ltr and rtl mode

Package Exports

  • storybook-addon-rtl-direction
  • storybook-addon-rtl-direction/dist/cjs/index.js
  • storybook-addon-rtl-direction/dist/esm/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (storybook-addon-rtl-direction) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

storybook-addon-rtl-direction

An addon to toggle between ltr and rtl mode.

  • dir: ltr or dir: rtl style will be added to html tag with LTR/RTL icon in tool section.

Example

Installation

npm i --save-dev storybook-addon-rtl-direction

Add it to .storybook/main.js

module.exports = {
  addons: ["storybook-addon-rtl-direction"],
};