1.0.7 • Published 1 year ago

emoji-rating-component v1.0.7

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Emoji-rating-component

A reactjs emoji-based rating component based on react-lottie

Preview

Installation

The package can be installed via npm:

npm install emoji-rating-component --save

Or via yarn:

yarn add emoji-rating-component

Quick example

You can use following snippet to quickly add component

<EmojiRating
    selected={selected}
    onSelected={(selected) => {
        setSelected(selected)
    }}
/>

This will result in following output:

Preview

Props

Use following Props to customize for your needs

PropsNecessityDescription
selected: numberrequiredto chose selected emoji
onSelected: (selected: number) => voidrequiredwill be called on each emoji select(click)
icons?: Arrayoptionalspecify you custom icons as array of lottie data
iconSize?: numberoptionalset custom icon size in px , default is 32px
1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago