Skip to content

hunghg255/rc-emoji-picker

Repository files navigation

logo

React Emoji Picker

NPM Version NPM Downloads Minizip Contributors License

Demo

Demo

Install

npm install rc-emoji-picker

Usage

import EmojiPicker from 'rc-emoji-picker'

import 'rc-emoji-picker/style.css'

function App() {
  const [emoji, setEmoji] = useState('')

  return (
    <EmojiPicker
      onChange={(v: any) => {
        setEmoji(v)
      }}
    >
      <button type="button">
        Select Emoji
        <span>{emoji}</span>
      </button>
    </EmojiPicker>
  )
}

Run Locally

Clone the project

git clone https://github.com/hunghg255/rc-emoji-picker.git

Go to the project directory

cd rc-emoji-picker

Install dependencies

pnpm install

Start the Demo server

npm run build:lib:dev
npm run playground

All Contributors

Thanks to the following friends for their contributions to project:

contributors

License

MIT