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

storybook-addon-storyclip

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

storybook-addon-storyclip

Adds a toolbar button to capture pieces of a story as an image which is stored on the clipboard

  • 0.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

Storyclip

Storybook addon for clipping a story or a part of a story as an image.

  1. Press the c key, or click the Camera button to enable the addon.

  2. Hover over any DOM element in the story canvas.

  3. Storybook will highlight the elements as you hover so you know which element is being clipped.

  4. Click the desired element.

  5. Wait for the notification in the bottom right.

  6. Paste the contents of your clipboard in whatever application you want your clipped story in.

Demo

Usage

This addon requires Storybook 6.3 or later.

It also uses html2canvas under the hood.

npm i -D storybook-addon-storyclip

Add "storybook-addon-storyclip" to the addons array in your .storybook/main.js:

module.exports = {
  addons: ['@storybook/storybook-addon-storyclip'],
};

Keywords

FAQs

Package last updated on 30 Aug 2022

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