Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

storybook-addon-sketch

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

storybook-addon-sketch

Get the sketch files for your stories in Storybook

  • 0.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
481
decreased by-5.69%
Maintainers
1
Weekly downloads
 
Created
Source

storybook-addon-sketch

Download sketch files straight from storybook.

Installation

yarn add -D storybook-addon-sketch
# or
npm i --save storybook-addon-sketch

Configuration

There are two ways you can install this addon.

Preset

Add the following to your presets.js.

module.exports = ['storybook-addon-sketch/preset'];

Manually

Add the following to your addons.js.

import 'storybook-addon-sketch/register';

Add the following to your storybook webpack.config.js.

module.exports = ({ config }) => {
  config.entry.push(require.resolve('storybook-addon-sketch/entry'));
};

And you are all done!

Options

To configure any options for storybook-addon-sketch change your addons.js to the following

require('storybook-addon-sketch/register-options')(options);

Stories for Kind

If you want to let your storybook users also download all the default renderings for a story kind (ex: Input).

require('storybook-addon-sketch/register-options')({ kind: true });

You will also need to have ran story2sketch with the option outputBy set to kind and the output set to out/sketch. This will output all the sketch files to a specific folder that users can download from.

FAQs

Package last updated on 15 Jan 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