-
-
Notifications
You must be signed in to change notification settings - Fork 80
Open
Description
Following the v2.1.8 release that suffixed all icons with Icon, renaming the Icon type to PhosphorIcon would also contribute towards a better DX and more targeted suggestions. For example:
- Import autocomplete for
Iconis much more polluted thanPhosphorIcon - It's way more readable and predictable when used as a React prop
interface Props {
title: string;
icon?: Icon; // what kind of Icon?
}
interface PropsV2 {
title: string;
icon?: PhopsphorIcon; // clear and concise
}Metadata
Metadata
Assignees
Labels
No labels