You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.
importReactfrom"react"import{storiesOf,addDecorator}from"@storybook/react"import{withKnobs}from"@storybook/addon-knobs"import{withSmartKnobs}from"storybook-addon-smart-knobs"import{withInfo}from"@storybook/addon-info"// add-onimport{action}from"@storybook/addon-actions"// componentimportButtonfrom"./"storiesOf("Button",module).addDecorator((story,context)=>withInfo("A button with a simple label")(story)(context)).addDecorator(withSmartKnobs).addDecorator(withKnobs).add("With a label",()=><Buttonlabel="Hey"onClick={action("Boo")}/>)
Sadly, it doesn't generate the component's knobs (nor its props proptype with info add-on). If I only use withKnobs and add them manually, it works.
I don't know if this is related to React CSS Modules, Storybook or to the add-on 😕
Sure ! My whole code is accessible on this repo
I'm trying to create a complete boilerplate so don't hesitate if you just only the storybook + css-modules parts, I'll create another repo.
Hi, I'm having some issue with this add-on.
Here's an example component :
And its stories :
Sadly, it doesn't generate the component's knobs (nor its props proptype with info add-on). If I only use
withKnobs
and add them manually, it works.I don't know if this is related to React CSS Modules, Storybook or to the add-on 😕
A part of my
package.json
:Thanks for your help !
The text was updated successfully, but these errors were encountered: