{"id":26400571,"url":"https://github.com/corygibbons/react-file-icon","last_synced_at":"2025-05-15T16:08:49.474Z","repository":{"id":44137715,"uuid":"118943639","full_name":"corygibbons/react-file-icon","owner":"corygibbons","description":"React component that makes it easy to render themeable svg file icons.","archived":false,"fork":false,"pushed_at":"2025-02-14T18:25:06.000Z","size":451,"stargazers_count":125,"open_issues_count":11,"forks_count":30,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-03-31T16:13:42.529Z","etag":null,"topics":["icons","react","react-component","svg"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/corygibbons.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"publiccode":null,"codemeta":null}},"created_at":"2018-01-25T17:15:38.000Z","updated_at":"2025-03-11T16:22:17.000Z","dependencies_parsed_at":"2024-04-21T03:30:54.883Z","dependency_job_id":"4c34f88a-d9b5-4fc0-a5f8-ae5199dd12a6","html_url":"https://github.com/corygibbons/react-file-icon","commit_stats":{"total_commits":35,"total_committers":7,"mean_commits":5.0,"dds":0.3142857142857143,"last_synced_commit":"68ff4be8dc50cd1175e6cb403921791b66b61054"},"previous_names":["pixelunion/react-file-icon"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corygibbons%2Freact-file-icon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corygibbons%2Freact-file-icon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corygibbons%2Freact-file-icon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corygibbons%2Freact-file-icon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/corygibbons","download_url":"https://codeload.github.com/corygibbons/react-file-icon/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247694875,"owners_count":20980733,"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","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":["icons","react","react-component","svg"],"created_at":"2025-03-17T14:26:50.944Z","updated_at":"2025-04-07T17:07:03.242Z","avatar_url":"https://github.com/corygibbons.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React File Icon\n\n[![npm version](https://img.shields.io/npm/v/react-file-icon.svg?style=flat-square)](https://www.npmjs.com/package/react-file-icon)\n[![gh workflow](https://img.shields.io/github/workflow/status/corygibbons/react-file-icon/Test/master.svg?style=flat-square)](https://github.com/corygibbons/react-file-icon/actions?query=workflow%3ATest+branch%3Amaster)\n\n[CodeSandbox demo](https://codesandbox.io/s/react-file-icon-hv4kh) with default icon styles.\n\n```js\nimport { FileIcon } from 'react-file-icon';\n```\n\n## Props\n\n\u003c!-- prettier-ignore-start --\u003e\n| Property          | Type   | Default    | Description                       |\n|:---               |:---    |:---        |:---                               |\n| `color`           | string | `whitesmoke` | Color of icon background          |\n| `extension`       | string | `undefined`  | Text to display in label          |\n| `fold`            | bool   | `true`       | Displays the corner fold          |\n| `foldColor`       | string | `undefined`  | Color of the corner fold          |\n| `glyphColor`      | string | `undefined`  | Color of file type icon           |\n| `gradientColor`   | string | `white`      | Color of page gradient            |\n| `gradientOpacity` | number | `0.25`       | Opacity of page gradient          |\n| `labelColor`      | string | `undefined`  | Color of label                    |\n| `labelTextColor`  | string | `white`      | Color of label text               |\n| `labelUppercase`  | bool   | `false`      | Displays the label in all caps    |\n| `radius`          | number | `4`          | Corner radius of the file icon    |\n| `type`            | enum   | `undefined`  | Type of glyph icon to display (One of: `3d`, `acrobat`, `android`, `audio`, `binary`, `code`, `compressed`, `document`, `drive`, `font`, `image`, `presentation`, `settings`, `spreadsheet`, `vector`, `video`) |\n\u003c!-- prettier-ignore-end --\u003e\n\n## Default Styles\n\nWe also export an object of [default styles](https://github.com/corygibbons/react-file-icon/blob/master/src/defaultStyles.js) that can be used as a starting point when rendering icons. Object keys map to file extensions.\n\n```js\nimport { FileIcon, defaultStyles } from 'react-file-icon';\n\n// Render a .docx icon with default styles\n\u003cFileIcon extension=\"docx\" {...defaultStyles.docx} /\u003e;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorygibbons%2Freact-file-icon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcorygibbons%2Freact-file-icon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorygibbons%2Freact-file-icon/lists"}