Comments (1)
You can set the iconSet
at the component define stage according to a certain situation. Or it is possible to add a different iconSet
while you are going to show the Icon
.
import IcoMoon from "react-icomoon";
import iconSet from "./selection.json";
import otherIconSet from "./other-selection.json";
const Icon = ({ other, ...props }) => (
<IcoMoon iconSet={other ? otherIconSet : iconSet} {...props} />
);
export default Icon;
or
<Icon iconSet={otherIconSet} name="camera" size={20} />
Examples and methods can be multiplied. This package offers unlimited freedom in this regard.
from react-icomoon.
Related Issues (20)
- Version 2.0.5 does not contain dist folder HOT 1
- react-native support? HOT 2
- Optional React-Native support will be added. HOT 1
- Rendering issue within a <Text> wrapper HOT 2
- TypeScript type for `IconSetItem` breaks on v2.3.x
- Not find path name HOT 2
- Add support of "title" attribute HOT 2
- Fix static height value of viewBox HOT 3
- RNWeb: The style props works only with Inline style HOT 3
- Update react peerDependencies version HOT 1
- TypeError: item.properties is undefined HOT 2
- Uncaught TypeError: Cannot read properties of undefined (reading '0') HOT 5
- Reduce build size HOT 1
- Update for React v18 HOT 1
- using with nativewind
- Missing xmlns attribute when downloading a new SVG file
- Add new icons HOT 6
- Icons have pixelation in Safari
- Add types for typescript HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-icomoon.