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

3 years ago

0.0.118

3 years ago

0.0.126

3 years ago

0.0.125

3 years ago

0.0.120

3 years ago

0.0.124

3 years ago

0.0.123

3 years ago

0.0.122

3 years ago

0.0.121

3 years ago

0.0.117

3 years ago

0.0.116

3 years ago

0.0.115

3 years ago

0.0.114

3 years ago

0.0.113

3 years ago

0.0.112

3 years ago

0.0.111

3 years ago

0.0.110

3 years ago

0.0.109

3 years ago

0.0.108

3 years ago

0.0.107

3 years ago

0.0.106

3 years ago

0.0.105

3 years ago

0.0.104

3 years ago

0.0.103

3 years ago

0.0.102

3 years ago

0.0.101

3 years ago

0.0.100

3 years ago

0.0.99

3 years ago

0.0.98

3 years ago

0.0.97

3 years ago

0.0.96

3 years ago

0.0.95

3 years ago

0.0.94

3 years ago

0.0.93

3 years ago

0.0.92

3 years ago