ReactJS Emoji Keyboard | Playground

An emoji keyboard component for ReactJS.

Novo Projeto (10)

Installation

npm install reactjs-emoji-keyboard

or

yarn add reactjs-emoji-keyboard

Usage

import { EmojiKeyboard } from "reactjs-emoji-keyboard";

function App() {
  
  return (
    <EmojiKeyboard
      height={320}
      width={350}
      theme="dark"
      searchLabel="Procurar emoji"
      searchDisabled={false}
      onEmojiSelect={(emoji) =>console.log(emoji)}          
      categoryDisabled={false}
    />
  );
}

Features

  • 🌙 Dark theme
  • 🎨 Customizable
  • 🖱️ Customizable click handler

Props

PropTypeDefaultDescription
searchDisabledbooleanfalseShow/hide emoji search bar
categoryDisabledbooleanfalseShow/hide emoji categories
searchLabelstringProcurar emojiChange the emoji search input label
onEmojiSelectfunctionfalseFunction executed when an emoji is selected
theme“ligh”, “dark”“light”Sets the emoji keyboard theme
widthnumber320Sets the emoji keyboard width
heightnumber350Sets the emoji keyboard height
containerStylestyleApplies the style to the main keyboard container
searchStylestyleApplies the style to the search container

Learn More

To learn more about React, take a look at the following resources:

  • Getting Started – an overview of React Native and how setup your environment.
  • React Books – The Best React Books for Beginners of 2023.

GitHub

View Github