Is there any easy option to use the Icons from vanilla JS other than extracting them from the page? But anyway, this might be an option too (see an example)
Experienced as a front-end developer with 4+ years of building web applications, Using Javascript frameworks likes: VueJS, NuxtJS, ReactJS, NextJS paired with Gitflow, and third party libraries.
I would appreciate to have an option to read SVG directly. Maybe something like a REST api that returns SVG like this: https://mortezasabihi.github.io/iconsans/SVG?Id=Alert1&width=500
This would give us the option to use single icons without the overhead.
It's not quite what you describe, but one option might be to download the GitHub repository and upload the icons folder in your project (you can also choose which icons you need). You could then use them from HTML by doing something like:
Thank you much for sharing, great content.
Is there any easy option to use the Icons from vanilla JS other than extracting them from the page? But anyway, this might be an option too (see an example)
Hi Eckehard,
Thanks for your comment, We will add icon font support soon.😊
Your Icons are really beautiful!
I would appreciate to have an option to read SVG directly. Maybe something like a REST api that returns SVG like this:
https://mortezasabihi.github.io/iconsans/SVG?Id=Alert1&width=500This would give us the option to use single icons without the overhead.
It's not quite what you describe, but one option might be to download the GitHub repository and upload the
iconsfolder in your project (you can also choose which icons you need). You could then use them from HTML by doing something like:Did not know it was already there... Thank you very much
Example