-1

I am building a react library, the goal is to have no dependency but i need icons.

Am i forced to install packages? Can it be a problem for who install my package? How should i install it in my library?

1 Answers1

0

It depends how many icons you plan to have. It depends on what 3rd party libraries you intend to integrate yourself with.

If the number of needed icons are relatively small, I think that best way would be to just add some simple svgs that you could overwrite when using the library

  • thanks for your response.Around 30 icons needed – Damiano Amici Jan 17 '22 at 15:14
  • here a solution to make an icon component with a set of svg icons https://stackoverflow.com/a/42296853/10058705 then i will implement a dictionary of translate icons to make user able to use his icons – Damiano Amici Jan 18 '22 at 09:39