Skip to content

Wrong prop types displayed in Storybook props table #2760

Open
@mimarz

Description

@mimarz

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 in string 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

Labels

Type

No type

Projects

  • Status

    📄 Todo

Relationships

None yet

Development

No branches or pull requests

Issue actions