
Description
react-icomoon is a React and React Native library for showing SVG icons from an IcoMoon icon set. You import the selection.json file that IcoMoon exports, then render an icon by name, with props for size, colour, title, class name, inline style and disabling the fill. A helper method lists every icon you can use. The README provides an interactive cheatsheet and demo, install steps for both React and React Native, and a props table for each. For bundle size, the README explains that the whole selection file ends up in your build, so you can generate a smaller file that keeps only the paths, attributes and width each icon needs. You can keep every icon and strip only the metadata, or keep just the icons you use. The README says icon sets can be created with IcoMoon, or found and converted with svgps.app.…
Highlights
- Render IcoMoon icons as SVG in React
- Props for size, color, title and style
- React Native support with extra props
- Smaller icon file option for bundle size
Ratings & Reviews
No ratings yet
Be the first to rate react-icomoon.
People also visit
@icons-pack/react-simple-icons
This package provides the Simple Icons packaged as a set of React components
react-icomoon FAQ
What is react-icomoon?
A library that makes it simple to use SVG icons from an IcoMoon selection in React and React Native projects.
Where do I get the icon file?
Export a selection.json file from IcoMoon, or create one with svgps.app, then pass its content as the iconSet prop.
Does it work with React Native?
Yes. The README has a React Native section with install steps and extra props, such as native.
How can I reduce bundle size?
Generate a smaller icons file that keeps only the icons you use, with each icon's paths, attributes and width. Or keep every icon and strip only the metadata.
How do I see every available icon?
Use the iconList method, which returns the complete list of icons you can use.
What are the best react-icomoon alternatives?
Popular alternatives to react-icomoon include react-icons-kit, react-fontawesome and react-iconly. See all react-icomoon alternatives















