New
Storybook for full-stack developersAutomate with Chromatic
Star75,295
Back to integrations
Add your integration
Categories
  • ⭐️ Popular
  • 🧩 Essentials
  • 🛠 Code
  • ⚡️ Data & state
  • ✅ Test
  • 💅 Style
  • 🎨 Design
  • ⚙️ Appearance
  • 🗄 Organize
How to install addons Create an addon
storybook-addon-mobile-qrcode
storybook-addon-mobile-qrcode
npm install storybook-addon-mobile-qrcode
Last updated 9 months ago
6
Downloads per week
Readme View on GitHub

storybook-addon-mobile-qrcode

storybook 的一个简单的二维码预览插件,支持扫码后在移动设备中预览当前 canvas 中的 iframe 内容

如何使用

$ npm install --save-dev storybook-addon-mobile-qrcode
# or
$ yarn add -D storybook-addon-mobile-qrcode

在你的项目中的 .storybook 目录下,修改 main.js ,引入插件即可

  module.exports = {
    "stories": [],
    "addons": [
      // ...
      'storybook-addon-mobile-qrcode'
    ],
  }

如何调试

$ npm run start 
# or 
$ yarn start

直接启动 storybook 可以进行调试(已经在 .storybook 中引入)

Join the community
5,867 developers and counting
WhyWhy StorybookComponent-driven UI
Open source software
Storybook

Maintained by
Chromatic
Special thanks to Netlify and CircleCI