Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API to list all available icons or guidance on how to obtain them #2691

Open
luan-coelho opened this issue Dec 15, 2024 · 3 comments
Open

API to list all available icons or guidance on how to obtain them #2691

luan-coelho opened this issue Dec 15, 2024 · 3 comments

Comments

@luan-coelho
Copy link

Hello, Lucide team!

First of all, I would like to congratulate you on the excellent work with the library. I am using Lucide Icons in a Next.js application, and in a specific feature, I would like the user to be able to inform the name of an icon available in the library.

To facilitate this interaction, I would like to know:

  • Is there an API or method already available that provides a complete list of all the icons available in the library?

  • If there is not, would it be possible to consider creating an API or some feature that provides this list?

  • If none of the above options are possible, could you guide me on a way to do this with the tools currently available?

Thank you in advance for your attention.

@luan-coelho luan-coelho changed the title API para listar todos os ícones disponíveis ou orientação sobre como obtê-los API to list all available icons or guidance on how to obtain them Dec 15, 2024
@karsa-mistmere
Copy link
Member

You can use tags.json from lucide-static: https://www.npmjs.com/package/lucide-static?activeTab=code

@jguddas
Copy link
Member

jguddas commented Dec 15, 2024

https://cdn.jsdelivr.net/npm/lucide-static/tags.json

@luan-coelho
Copy link
Author

https://cdn.jsdelivr.net/npm/lucide-static/tags.json

I'm trying to access tags.json file via fetch in my application (http://localhost:3000), but I'm facing the following CORS error:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants