Microsoft 3D Emoji Picker is an emoji picker.
This's made using the 3D version of Microsoft Fluent Emoji.
When you select an emoji, you can access its image icon.
- Install package
npm install ms-3d-emoji-picker
- Add imports for Picker and EmojiType, and use the Picker component.
import { Picker, EmojiType } from 'ms-3d-emoji-picker';
export const EmojiPicker = () => {
return (
<Picker
isOpen={true}
handleEmojiSelect={(selectedEmoji: EmojiType) => console.log(selectedEmoji)}
/>
);
};
With this, you can use the emoji picker right away!
import { Picker, EmojiType } from 'ms-3d-emoji-picker';
function App() {
return (
<main>
<Picker
isOpen={true}
handleEmojiSelect={(selectedEmoji: EmojiType) => console.log(selectedEmoji)}
/>
</main>
);
}
export default App;
selectedEmoji's data example
{
url: "https://cdn.emoji.yajihum.dev/smileys/1.png",
category: "smileys",
name: "1",
extension: "png"
}
Option | Default | Description |
---|---|---|
isOpen | false |
Whether a picker should open |
handleEmojiSelect | {} |
Callback when an emoji is selected |
- Strictly speaking, it's not an 'emoji picker' per se, but rather a picker for obtaining emoji icons.
Therefore, it cannot be used as Unicode characters, like text. - Do not use not on Node.js.
This is a emoji picker of Microsoft Fluent Emoji.
This project makes use of the following open-source software.