Comments (4)
The package name has been changed from storybook-addon-designs
to @storybook/addon-designs
from v7.
The current online doc (GHPages) is not updated to the latest version (v7).
Refer to README.md
for the time being.
I don't know about Next.js + Storybook integration stuff but looking at your versions and the error message, it should work on the latest version of the addon.
from addon-designs.
The package name has been changed from
storybook-addon-designs
to@storybook/addon-designs
from v7. The current online doc (GHPages) is not updated to the latest version (v7). Refer toREADME.md
for the time being.I don't know about Next.js + Storybook integration stuff but looking at your versions and the error message, it should work on the latest version of the addon.
Pocka, thank you ππ»
According to your answer, I do this to get what I want.
main.js
=> the storybook setting file
// change the addon name
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-onboarding',
'@storybook/addon-interactions',
'@storybook/addon-designs',
],
preview.js
=> the docs mentioned steps, as you said might not update
// remove this line
import { withDesign } from 'storybook-addon-designs';
const preview = {
...preview,
// remove this line
decorators: [withDesign],
};
And in my component story below:
parameters = {
design: {
type: 'figspec',
accessToken: '',
url: ''
},
}
Works fineβ¨β¨β¨β¨β¨β¨β¨
Here is the snapshot for my packages version:
storybook: ^7.5.3
Other addons
Hope it can help other people.
And thanks again, without your hint, I won't get it work.
from addon-designs.
@pocka Is the "withDesign" decorator no longer required? What was it's purpose? I can't seem to find docs about it.
I see it in an existing codebase, and i'm not sure what I lose by removing it.
from addon-designs.
@MrSunshyne See #144. TL;DR is you don't need the decorator and it has been there for unknown reasons (probably mistake).
from addon-designs.
Related Issues (20)
- Figma login error HOT 4
- Unable to install beta v2 after installing Storybook v7-beta63 HOT 6
- Dependency on @storybook/api or incompatibility with Storybook 6.5.16 HOT 1
- Docs and demo page is 404 HOT 8
- Support SB7 HOT 8
- Add support for type: 'markdown' HOT 1
- storybook 7. 0.12 not working with [email protected] HOT 2
- renderTarget: "tab" does not display the design tab HOT 2
- v7.0.0 is not published to npm registry
- Make it possible to use two design types simultaneously HOT 1
- Version 7.0.0 not available on npmjs HOT 1
- Warning in console after installing addon HOT 2
- Latest version(s) aren't being published HOT 1
- V7 release in npm HOT 1
- Error when trying to use figspec. HOT 1
- Addon not able to load images from local file paths HOT 1
- Add a prop like onToggle to Figma component?
- Support for storybook 7 HOT 5
- Changelog & Git version tags HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from addon-designs.