I'm trying to get a simple Button component working with Storybook in typescript. I'm following
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.