1.3.0 • Published 8 years ago
react-moodycons v1.3.0
React Moodycons
React SVG component for emoji mood icons
Getting Started
npm i react-moodycons -Dimport React from 'react';
import Icon from 'react-moodycons';
module.exports = React.createClass({
render: function() {
return (
<Icon name='grinning' />
);
}
});Available props
name- single word icon name (required)fill- string, inherits from parent by defaultwidth- number, defaults to 50height- number, defaults to 50
Accessibility
This module is fully accessible! Output looks like this:
<svg role="img" aria-labelledby="grinning" "...">
<title id="grinning">grinning icon</title>
<path d="..."></path>
</svg><3
MIT License