-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Currently, each icon has types generated but if you want to cast types to a prop outside the library this is really awkward.
Consider the following
export const Button = ({ icon }: { icon: any }) => (
<button>
{icon}
Click me!
</button>
)
What should the type of icon be?
The closest the library creates right now would mean having to do something like importing a random icon and then using typeof to figure out its type, but this isn't clear and doesn't appear as a generic icon type.
Ideally, we'd be able to do something like `import type { NoIconType } from '@noicons/react'
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels