Closed niaodan2b closed 7 months ago
So in my project(React+Typescript) I have something like this:
type ButtonType = { label: string icon: RemixiconComponentType url: string } const ButtonList: ButtonType[] = [ { label: 'Github', icon: RiGithubLine, url: 'https://github.com' }, { label: 'Youtube', icon: RiYoutubeLine, url: 'https://www.youtube.com' }, { label: 'Twitter', icon: RiTwitterLine, url: 'https://twitter.com' }, ]
But RemixiconComponentType is not exported from @remixicon/react, so how do i type ButtonType.icon?
RemixiconComponentType
@remixicon/react
ButtonType.icon
need this!
@niaodan2b @rickyzhangca Hi, in 4.2.0, we added the export of RemixiconComponentType
So in my project(React+Typescript) I have something like this:
But
RemixiconComponentType
is not exported from@remixicon/react
, so how do i typeButtonType.icon
?