reactjs-emojis

1.0.4 • Public • Published

reactjs-emojis

adds emoji support for reactjs projects

node-emoji example

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

/reactjs-emojis/

    Package Sidebar

    Install

    npm i reactjs-emojis

    Weekly Downloads

    4

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    39.9 kB

    Total Files

    4

    Last publish

    Collaborators

    • saqy