storybookjs/storybook

[Bug] When using argTypes the component type should be loosened.

Open

#20,889 opened on Feb 2, 2023

View on GitHub
 (0 comments) (1 reaction) (1 assignee)TypeScript (89,909 stars) (10,058 forks)batch import
argtypesbughelp wantedsev:S3typescript

Description

For example, you may want to drop an arg in your argTypes:

Image

Or you want to use arg mapping:

Image

In this case, we could drop the constraints we put on the "component" of meta.

Contributor guide