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

storybook-addon-designs

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

storybook-addon-designs

Storybook addon for embedding your design preview in addon panel

  • 6.3.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
203K
decreased by-5.93%
Maintainers
1
Weekly downloads
 
Created

What is storybook-addon-designs?

storybook-addon-designs is an addon for Storybook that allows you to embed design resources such as Figma, Sketch, and images directly into your Storybook stories. This helps in bridging the gap between design and development by providing a visual reference for developers.

What are storybook-addon-designs's main functionalities?

Embed Figma Designs

This feature allows you to embed Figma designs directly into your Storybook stories. By providing a Figma URL, you can display the design alongside the component, making it easier for developers to reference the design.

import { withDesign } from 'storybook-addon-designs';

export default {
  title: 'Button',
  decorators: [withDesign],
};

export const Primary = () => <button>Primary</button>;

Primary.parameters = {
  design: {
    type: 'figma',
    url: 'https://www.figma.com/file/xyz123'
  },
};

Embed Sketch Designs

This feature allows you to embed Sketch designs into your Storybook stories. By providing a Sketch URL, you can display the design alongside the component, facilitating better design-to-development handoff.

import { withDesign } from 'storybook-addon-designs';

export default {
  title: 'Button',
  decorators: [withDesign],
};

export const Primary = () => <button>Primary</button>;

Primary.parameters = {
  design: {
    type: 'sketch',
    url: 'https://www.sketch.com/s/xyz123'
  },
};

Embed Images

This feature allows you to embed image files into your Storybook stories. By providing an image URL, you can display the design image alongside the component, which is useful for static design references.

import { withDesign } from 'storybook-addon-designs';

export default {
  title: 'Button',
  decorators: [withDesign],
};

export const Primary = () => <button>Primary</button>;

Primary.parameters = {
  design: {
    type: 'image',
    url: 'https://example.com/design.png'
  },
};

Other packages similar to storybook-addon-designs

Keywords

FAQs

Package last updated on 13 Jun 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