Description
react-file-icon is a React component that renders SVG file icons, the small pictures that show a file type, such as a document, spreadsheet or image. The icon is themeable, so you can change its colour and its label to match your interface. The props let you set the background colour, the text shown on the label, which is usually the file extension, and whether the corner of the page is folded. The README includes a CodeSandbox demo with the default icon styles, and it has a table of the props with types and defaults. The project is on GitHub and is free to use. It suits developers building file browsers, upload lists or document pickers who want file-type icons that match the design of their app without loading an image file for each type.…
Highlights
- SVG file icons as a React component
- Themeable colour and label
- Folded corner option
- Props table and CodeSandbox demo
Ratings & Reviews
No ratings yet
Be the first to rate react-file-icon.
People also visit
react-file-icon FAQ
What does react-file-icon render?
SVG file-type icons, such as documents, spreadsheets and images.
Can I change the look?
Yes. The colour and label are set through props, and the README lists them.
Is there a demo?
Yes. The README links to a CodeSandbox demo.
Where is the prop list?
In a table in the README, with types and defaults.
What are the best react-file-icon alternatives?
Popular alternatives to react-file-icon include material-file-icons, @react-symbols/icons and @icons-pack/react-simple-icons. See all react-file-icon alternatives















