DATechnologies/react-fa-icon-picker

Check if icon exists

Closed this issue · 2 comments

Hi! Thanks for this. I am building this website in which an user can select an icon and send it to backend, where it will be saved.

For validation purposes, I am trying to check (on the backend) if the icon name is valid - i.e., if it's one of the icons available within the react-fa-icon-picker.

Has anyone done anything similar to this?

It's a bit of a manual process, but the available icons are listed in https://github.com/DATechnologies/react-fa-icon-picker/blob/master/src/iconList.ts, so a copy of that on the backend serving as a lookup would achieve what you want I think?

Hi @Chuckatron, fantastic, thank you!! That will definitely work out for what I need.