Socket
Socket
Sign inDemoInstall

@storybook/addon-designs

Package Overview
Dependencies
Maintainers
11
Versions
45
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


Version published
Weekly downloads
84K
decreased by-79.78%
Maintainers
11
Weekly downloads
 
Created

What is @storybook/addon-designs?

@storybook/addon-designs is an addon for Storybook that allows you to embed design resources directly into your 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 URL to the Figma file, you can display the design alongside the component.

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 URL to the Sketch file, you can display the design alongside the component.

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 a URL to the image, you can display the design alongside the component.

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 03 Jul 2024

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc