react-emoji-selector
A React tool to select Emojis.
Demo
Quick Start
Installation
Install react-emoji-selector using npm
npm install --save react-emoji-selector
Usage
Import the component and stylesheet:
Use the component:
Component { this // {emoji: "🚀", key: "rocket"} } { return <ReactEmojiSelector visibleAmount=10 searchPlaceholder='Search emoji' onSelect= this/> }
Props
Component props:
Prop | Default | Type | Description |
---|---|---|---|
visibleAmount | 78 | int | Amount of emojis shown before Show-more button is pressed |
searchPlaceholder | Search | string | Placeholder text for search input |
showMoreButtonText | Show more | string | 'Show more' button text |
onSelect | - | func | Callback function called after selecting an emoji |