Home > other >  Type 'boolean' is not assignable to type 'StoryFnReactReturnType' React Storyboo
Type 'boolean' is not assignable to type 'StoryFnReactReturnType' React Storyboo

Time:05-06

I'm trying to get a simple Button component working with Storybook in typescript. I'm following More Context

Am I missing some sort of configuration?

CodePudding user response:

First thing seems like you'll need to change the Button.stories.ts file to .tsx, regular typescript thinks the inside of the <> should be a type. After that, the Primary.args will need to match the ButtonProps you defined.

  • Related