radix-ui / icons

A crisp set of 15×15 icons designed by the @workos team.
https://radix-ui.com/icons
MIT License
2.15k stars 107 forks source link

Add displayName to icons #124

Open penx opened 2 years ago

penx commented 2 years ago

Please could you add displayName to the generated React icons?

You do this already in Radix Primitives, e.g.

https://github.com/radix-ui/primitives/blob/4ee9d362fcd5e32edbce9f43f1d41f1bf1a015c1/packages/react/accessible-icon/src/AccessibleIcon.tsx#L28

This will help to ensure the name of the icon/component appears in developer tools and documentation generators.