0.0.126 • Published 2 years ago

@fwoosh/panel-designs v0.0.126

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@fwoosh/panel-designs

Display your designs for you component right along with your stories

Installation

To use this plugin first install the package:

npm i --save-dev @fwoosh/panel-designs`
# or
yarn add -D @fwoosh/panel-designs`

Then add it to your fwoosh.config.ts:

export const config: FwooshConfig = {
  plugins: ["@fwoosh/panel-designs`"],
};

Usage

To use this plugin you can either configure a link to your design in the file meta:

export const meta: StoryMeta = {
  parameters: {
    designs: "https://figma.com/file/ASDF",
  },
};

or directly on a story:

export const BasicStory = () => {};

BasicStory.parameters = {
  designs: "https://figma.com/file/ASDF",
};

Options

hideWithoutParams

Only show the panel if there are parameters configured for the story.

import { FwooshOptions } from "fwoosh";
import DesignsPanel from "@fwoosh/panel-designs";

export const config: FwooshOptions = {
  plugins: [new DesignsPanel({ hideWithoutParams: true })],
};
0.0.119

2 years ago

0.0.118

2 years ago

0.0.126

2 years ago

0.0.125

2 years ago

0.0.120

2 years ago

0.0.124

2 years ago

0.0.123

2 years ago

0.0.122

2 years ago

0.0.121

2 years ago

0.0.117

2 years ago

0.0.116

2 years ago

0.0.115

2 years ago

0.0.114

2 years ago

0.0.113

2 years ago

0.0.112

2 years ago

0.0.111

2 years ago

0.0.110

2 years ago

0.0.109

2 years ago

0.0.108

2 years ago

0.0.107

2 years ago

0.0.106

2 years ago

0.0.105

2 years ago

0.0.104

2 years ago

0.0.103

2 years ago

0.0.102

2 years ago

0.0.101

2 years ago

0.0.100

2 years ago

0.0.99

2 years ago

0.0.98

2 years ago

0.0.97

2 years ago

0.0.96

2 years ago

0.0.95

2 years ago

0.0.94

2 years ago

0.0.93

2 years ago

0.0.92

2 years ago