Skip to content

odeyAbdulrahman/emoji-rating-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react emoji rating

This Library is used to evaluate or rating using emojis in react js

Installation

In the project directory, you can run: npm i emoji-rating-js

Usage

To used Add this lines

rating by emojes

rating by emojes

  1. import { EmojiRating, SymbEmojiRating, Emojes, SymbolEmojes, Styles } from 'emoji-rating-js

  2. const [Emoji, setEmoji] = useState({});

  3. const getEmoji = (item) => setEmoji(item);

  4. <EmojiRating data={Emojes.Star} onChange={getEmoji} style={Styles.style} size={65} /> <SymbEmojiRating data={SymbolEmojes.Cat} onChange={getCatEmoji} style={Styles.blueStyle} size={45} />

Options

Property Type Description
data json object List of emoji objects
onChange func Called when any emoji item selected
style css object add style to selected emoji item
size number size of emoji

About

This Library is used to evaluate or rating using emojis in react js

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published