tailwindlabs / heroicons

A set of free MIT-licensed high-quality SVG icons for UI development.
https://heroicons.com
MIT License
21.45k stars 1.28k forks source link

Better icons naming #682

Closed hazae41 closed 2 years ago

hazae41 commented 2 years ago

Sometimes I want to import both variants of the same icon in the same file

import { BeakerIcon } from "@heroicons/react/solid"
import { BeakerIcon as OBeakerIcon } from "@heroicons/react/outline"

I have to manually "import as" with a different name, is there a way to avoid this pain?

This could also be useful when you accidentally import the wrong variant in VSCode and find out on production