1.0.4 • Published 4 years ago
reactjs-emojis v1.0.4
reactjs-emojis
adds emoji support for reactjs projects
Installation
To install reactjs-emojis
, you need node.js and npm.
In your project directory, just run
npm install --save reactjs-emojis
Usage
import React from 'react';
import Emoji from 'reactjs-emojis';
function App() {
return (
<div >
<Emoji name="smiley" size="20"/>
<Emoji name="monkey_face" size="40"/>
<Emoji name="wink" size="60"/>
<Emoji name="rolling_on_the_floor_laughing" size="80"/>
<Emoji name="thinking_face" size="100"/>
</div>
);
}
export default App;
Emoji Names
Emoji list come from js-emoji (Thanks guys!!). You can get a JSON file with all emoji here: https://raw.githubusercontent.com/saqy/reactjs-emojis/master/src/components/emoji.json
License
MIT