A JavaScript library for platform independent Emojis ๐.
Supports most of the web technologies : React, React-Native Vue, Angular, Preact, Lit, Svelte etc.
npm i emoji-store
import emoji, { Apple160 } from 'emoji-store';
function App() {
return (
<div>
<img src={emoji('โค๏ธโ๐ฅ')} /> {/*Default Apple64*/}
<img src={emoji('โค๏ธโ๐ฅ', Apple160)} />
</div>
);
}
export default App;
import { Emoji, Facebook96 } from 'emoji-store';
const customEmoji = Emoji(Facebook96);
function App() {
return (
<div>
<img src={customEmoji('โค๏ธโ๐ฅ')} />
</div>
);
}
const props = {
author: 'apple',
size: 160,
type: 'png',
};
const customEmoji = Emoji(props);
console.log(customEmoji('๐ซข'));
console.log(customEmoji('โค๏ธโ๐ฅ'));
console.log(customEmoji('๐๐ปโโ๏ธ'));
console.log(customEmoji('๐ง๐ปโ๐ป'));
Platform | Type | Size(px) | Constant |
---|---|---|---|
Apple | PNG | 64 | Apple64 |
Apple | PNG | 160 | Apple160 |
PNG | 64 | Facebook64 | |
PNG | 96 | Facebook96 |
It returns the link of the specified emoji that is displayed in the browser.