react-emoji-rating
v1.0.6
Published
A simple emoji rating component
Downloads
176
Readme
:nerd_face: React-Emoji-Rating
A simple emoji rating component
Install
npm install --save react-emoji-rating
Or yarn
yarn add react-emoji-rating
Emoji categories
- smileys
- emojiPeople
- emoticons
- funky
- classic (defalut)
- 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
| Property | Type | Description | | ------------------|:--------------:| ----------------------------------------:| | variant | string |Emoji category to be used | | onChange | func |Called 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