-
Notifications
You must be signed in to change notification settings - Fork 68
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
Default icon #9
Comments
Same question! You mention it briefly in readme but I need an example. |
For anyone still wondering, the readme pretty much tells you what you can do, each of the sets has a catalog: https://github.com/dmhendricks/file-icon-vectors/blob/master/dist/icons/high-contrast/catalog.json said catalog contains an array of all file-extensions, you have multiple ways of including it:
either way you choose, you can then simply check if the catalog array contains the file extension you are requesting, if not, fallback to a default e.g. the |
FWIW, the set does include the default icon, |
if an icon doesn't exist is there a way to show a default one for an extension not recognized?
kind regards
The text was updated successfully, but these errors were encountered: