1.0.6 • Published 5 years ago
react-emoji-rating v1.0.6
:nerd_face: React-Emoji-Rating
A simple emoji rating component
Install
npm install --save react-emoji-ratingOr yarn
yarn add react-emoji-ratingEmoji 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
