Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ahmedanwar1/amazing-react-emoji-picker

An amazing react emoji picker with more than 500 emojis included in the package.
https://github.com/ahmedanwar1/amazing-react-emoji-picker

emoji emoji-picker emojis emoticon emoticon-picker emoticons npm npm-package picker react react-emoji react-emojis react-picker reactsjs

Last synced: 19 days ago
JSON representation

An amazing react emoji picker with more than 500 emojis included in the package.

Awesome Lists containing this project

README

        

# Amazing React Emoji Picker

An amazing react emoji picker with more than 500 emojis included in the package.


## Install

```console
#npm
npm install amazing-react-emojipicker

#yarn
yarn add amazing-react-emojipicker
```


## Usage basic

```js
import { useRef, useState } from 'react';
import AmazingEmojiPicker from 'amazing-react-emojipicker';

const TestComponent = () => {
const inputRef = useRef();
const [toggle, setToggle] = useState(false);

return (


{/* input field that emojis will be added to*/}

{/*Emoji picker component*/}

{/*emoji icon to open and close the picker*/}
setToggle(!toggle)} />


);
};

export default TestComponent;
```


## Props details

| Prop | Required | Description |
| :-------------- | :------: | :--------------------------------------------------------- |
| `darkMode` | ✓ | Set the default theme to dark mode. |
| `ref` | ✓ | Ref of the input which emojis will be added in. (`useRef`) |
| `visibility` | ✓ | The initail visibility of the picker. |
| `setVisibility` | ✓ | Toggle the picker by the set function of `useState`. |
| `top` | - | Set the top position of the picker. |
| `right` | - | Set the right position of the picker. |
| `left` | - | Set the left position of the picker. |
| `bottom` | - | Set the bottom position of the picker. |

## License

[MIT](./LICENSE)