Skip to content

daniel-cotton/storybook-figma-addon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

storybook-figma-addon

A really simple addon for Storybook that brings in embedded Figma designs.

Usage

  1. Register the Addon import 'storybook-figma-addon';

  2. Include it in your Storybook Config

import withFigma from "storybook-figma-addon";

addDecorator(withFigma({
  // Here you can add options like the default background colour
  // to assist with loading
  background: "#0c2c3a"
}));

  1. Tag stories to figma projects.

const figma = {
  figma: "https://www.figma.com/file/<your-figma-url-here>"
}

storiesOf('Button', module)
  .add('basic button', () => <Button>Primary Button</Button>, figma)

About

A simple, lightweight Figma embed addon for Storybook

Resources

Stars

Watchers

Forks

Packages

No packages published