Socket
Socket
Sign inDemoInstall

storybook-addon-code-preview

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

storybook-addon-code-preview

A storybook addon for previewing component files


Version published
Weekly downloads
72
decreased by-30.1%
Maintainers
1
Weekly downloads
 
Created
Source

Storybook Addon Code Preview

This Storybook addon gives you a preview for js|js|ts|tsx|css files of Storybook Components. It uses a custom Webpack config & loader and adds a preview tab for all files located under the components folder.

  • 📝 Easily access story/component code
  • ⚛️ History of accessed components
  • 📦 Many more to come

preview

Getting Started

Installation

First install the addon from npm:

npm i --save-dev storybook-addon-code-preview
# or
yarn add --dev storybook-addon-code-preview

Then add the following to your .storybook/main.js:

module.exports = {
  addons: ['storybook-addon-code-preview']
};

After registering the addon you're all good to go 🚀

Keywords

FAQs

Package last updated on 29 Jul 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc