storybookjs / design-system

🗃 Storybook Design System

Home Page:https://master--5ccbc373887ca40020446347.chromatic.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] Many components forward props to the DOM when they should not

kylegach opened this issue · comments

Describe the bug

For example, src and type are both rendered on the root div of Avatar: https://5ccbc373887ca40020446347-oghpnhotjv.chromatic.com/?path=/story/avatar--large

Expected behavior

Invalid and unnecessary DOM attributes should not be rendered.

Additional context

Use shouldForwardProp to fix.