Open
Description
When declaring a default value for native props in our preview story, wrong type is displayed in the props table. It uses the type for the value declared in the preview story instead of the actual type on the component.
Notes;
- Alert has defined a
string
default value for children in its preview story, resulting instring
being shown as the prop type instead of the native one,ReactNode
- Maybe there is a solution in tweaking our reactDocgen settings/parsing
Metadata
Metadata
Assignees
Type
Projects
Status
📄 Todo