Closed a-y-u-s-h closed 3 years ago
Hey, thanks for the suggestion! I have also experienced that it might feel a bit cumbersome to change out the imported icons quickly.
I’d recommend this import style if you want a quick developer experience:
import * as Icons from "@modulz/radix-icons"
function MyComponent () {
return <Icons.LayersIcon />
}
This enables code editor autocompletion as you type the icon name and will work out better with TypeScript in case we introduce size or variant props for certain icons.
Hi, I love the icons. To change them faster in the application I created this component, which could be default export of the application maybe. It simply returns the appropriate component after searching in all exports.
Usage: