1.0.6 • Published 4 years ago

react-emoji-rating v1.0.6

Weekly downloads
43
License
MIT
Repository
github
Last release
4 years ago

:nerd_face: React-Emoji-Rating

A simple emoji rating component

JavaScript Style Guide

NPM

Install

npm install --save react-emoji-rating

Or yarn

yarn add react-emoji-rating

Emoji categories

  1. smileys

smileys


  1. emojiPeople

emo people


  1. emoticons

emoticons


  1. funky

funky


  1. classic (defalut)

classic


  1. blobs

    blobs


Basic Usage

import React, { Component } from 'react'

import EmojiRating from 'react-emoji-rating'

export default class App extends Component {
 
  render () {
    return (
      <div>
        <EmojiRating 
          variant='classic'
          onChange={this.handleRating} />
      </div>
    )
  }
}

Options

PropertyTypeDescription
variantstringEmoji category to be used
onChangefuncCalled when the slider is moved with the silder value

Example

Example code for this simple component is available in the /example directory.

License

MIT © HasiniWijerathna

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago