friktor / react-material-icons Goto Github PK
View Code? Open in Web Editor NEWSimple component for anomated Material Icons in React.
Home Page: http://friktor.github.io/react-material-icons/
Simple component for anomated Material Icons in React.
Home Page: http://friktor.github.io/react-material-icons/
I'm trying to do something similar as in the example in my own app, but for some reason I can't get icon morphing to work. I'm running React v15 and the latest react-material-icons. My object looks like this:
<MorphIcon shapes={{left: icons.hardware.keyboard_arrow_left, right: icons.hardware.keyboard_arrow_right}} options={{duration: 500}} ref={key} />
and when a button is pressed, I call:
this.refs[key].morph('left')
I've tried hard-coding the ref key to a simple name, but that doesn't work. I see that the icons morph initially into their first state, but once set, I cant' change them. Would this be a React caching issue?
Thanks,
-Mike
Hi,
Nice wrapper!
I get errors when I require this module.
It seems like index.compiled.js tries to require svg-morpheus from '../lib' instead of './lib'
https://github.com/friktor/react-material-icons/blob/master/index.compiled.js#L2
I can make a pull request to fix this, but I guess index.compiled.js is the end result of some build process?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.