{"id":30701193,"url":"https://github.com/temmiland/react-fileicons","last_synced_at":"2026-05-08T15:02:35.590Z","repository":{"id":42486109,"uuid":"242602902","full_name":"temmiland/react-fileicons","owner":"temmiland","description":"Simple and intuitive react component for visualizing file icons ✨","archived":false,"fork":false,"pushed_at":"2024-06-12T10:01:41.000Z","size":14620,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-31T09:45:03.522Z","etag":null,"topics":["file-icons","icons","overwrites","react","react-fileicons","storybook"],"latest_commit_sha":null,"homepage":"http://demo.temmi.land/react-fileicons/","language":"MDX","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/temmiland.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-02-23T22:42:25.000Z","updated_at":"2024-06-12T10:01:43.000Z","dependencies_parsed_at":"2023-01-20T01:32:21.256Z","dependency_job_id":"1b80731a-8b18-42d0-8acf-4cbc798468f6","html_url":"https://github.com/temmiland/react-fileicons","commit_stats":{"total_commits":78,"total_committers":1,"mean_commits":78.0,"dds":0.0,"last_synced_commit":"30e4288ec1d47bdfec93a81bec036e2c4a6c966d"},"previous_names":["temmiland/react-fileicons","tomxpcvx/react-fileicons"],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/temmiland/react-fileicons","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/temmiland%2Freact-fileicons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/temmiland%2Freact-fileicons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/temmiland%2Freact-fileicons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/temmiland%2Freact-fileicons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/temmiland","download_url":"https://codeload.github.com/temmiland/react-fileicons/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/temmiland%2Freact-fileicons/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273288256,"owners_count":25078692,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-02T02:00:09.530Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["file-icons","icons","overwrites","react","react-fileicons","storybook"],"created_at":"2025-09-02T13:14:31.864Z","updated_at":"2026-05-08T15:02:30.541Z","avatar_url":"https://github.com/temmiland.png","language":"MDX","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-fileicons - [![npm](https://img.shields.io/npm/v/react-fileicons.svg?color=%2345bf17\u0026style=popout)](https://www.npmjs.com/package/react-fileicons)\n\nreact-fileicons is a simple and intuitive react component for visualizing file icons.\n\n## Demo\n\nYou can reach the Storybook [here](https://demo.temmi.land/react-fileicons/).\n\n## Usage\n\nFirst you should import the needed files.\n\n```javascript\nimport FileIcon, { ColorScheme, IconStyle } from \"react-fileicons\";\n```\n\nAfter that you can use the FileIcon component.\nTo change the color of the component, you can use the built-in color list `ColorScheme`.\n\n```javascript\n\u003cFileIcon\n    extension=\"doc\"\n    colorScheme={ ColorScheme.red }\n    iconStyle={ IconStyle.normal }\n    size={ 100 }\n/\u003e\n```\n\nAlternatively, you can use your own color configurations. However, these must be in the following format.\n\n```javascript\n\u003cFileIcon\n    extension=\"doc\"\n    colorScheme={{ primary: \"#1E88E5\", secondary: \"#1976D2\" }}\n    iconStyle={ IconStyle.normal }\n    size={ 100 }\n/\u003e\n```\n\nThe following options can be used to access different designs:\n\n```text\n\u003cFileIcon\n    extension=\"doc\"                 # more than 5 chars can require another fontSize\n    background=\"#fff\"               # use to pass your background color to the component\n    colorScheme={ ColorScheme.red } # must be in the above format\n    iconStyle={ IconStyle.normal }  # normal / gradient / outline\n    size={ 100 }                    # variable size property\n    fontSize={ 100 }                # optional, use to change font size independent size property\n/\u003e\n```\n\n## Migrate from v1 to v2\n\nTo migrate from v1 to v2, some props have to be changed.\nThe props ``smallest``, ``small``, ``medium`` have been removed and the size of the icons can now be variably adjusted via the prop ``size``. The props ``linearGradient`` and ``outline`` have also been removed and the prop ``iconStyle`` is now available. This can be used with the ``IconStyle`` class as shown above. If you want to customize the fontSize use ``fontSize`` property. Now all characters are displayed instead of only 4 characters as before.\n\n```javascript\n// v1\n\u003cFileIcon\n    extension=\"doc\"\n    colorScheme={ ColorScheme.red }\n    gradient\n    medium\n/\u003e\n\n// v2\n\u003cFileIcon\n    extension=\"doc\"\n    colorScheme={ ColorScheme.red }\n    iconStyle={ IconStyle.gradient }\n    size={ 100 }\n/\u003e\n```\n\n## Known issues\n\nBugs can be found [here](https://github.com/temmiland/react-fileicons/labels/bug).\n\n## Changelog\n\nChangelog can be found [here](https://github.com/temmiland/react-fileicons/blob/main/CHANGELOG.md).\n\n## Contribute\n\n### Pull Requests\n\nIf you make any changes or improvements to this project, please make a pull request to merge your changes with the upstream.\n\n## Thanks to ❤\n\n- React\n- Storybook\n- styled-components\n- Material UI Colors\n\n## License\n\nreact-fileicons is licensed under the MIT license. Please see [LICENSE.md](https://github.com/temmiland/react-fileicons/blob/main/LICENSE.md) for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftemmiland%2Freact-fileicons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftemmiland%2Freact-fileicons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftemmiland%2Freact-fileicons/lists"}