teaguestockwell / react-icon-cloud

React component for rendering an interactive img or word cloud on canvas
MIT License
38 stars 4 forks source link

Custom Icons #5

Open Brellio opened 2 weeks ago

Brellio commented 2 weeks ago

Hi there,

Is there a way to use custom icons in react-icon-cloud?

Thanks

teaguestockwell commented 3 days ago

Is there a way to use custom icons in react-icon-cloud?

Yes, you have a few options for tags that are not simple icons:

  1. your svg only has one path
    • invoke renderSimpleIcon with an icon that has a hex, title and path and render the result under a cloud
  2. your svg has many paths / your using a png

I hope this helps, let me know what you come up with.