GithubHelp home page GithubHelp logo

codeabinash / emoji-store Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 0.0 626 KB

A JavaScript library for platform independent Emojis ๐Ÿ˜.

License: MIT License

TypeScript 38.02% JavaScript 61.98%
emoji emojis web-emoji

emoji-store's Introduction

Emoji Store

Release Date Tag

A JavaScript library for platform independent Emojis ๐Ÿ˜.

Supports most of the web technologies : React, React-Native Vue, Angular, Preact, Lit, Svelte etc.

Install

npm i emoji-store

Use

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>
  );
}

Custom Emoji Config

const props = {
  author: 'apple',
  size: 160,
  type: 'png',
};

const customEmoji = Emoji(props);

console.log(customEmoji('๐Ÿซข'));
console.log(customEmoji('โค๏ธโ€๐Ÿ”ฅ'));
console.log(customEmoji('๐Ÿ„๐Ÿปโ€โ™‚๏ธ'));
console.log(customEmoji('๐Ÿง‘๐Ÿปโ€๐Ÿ’ป'));

๐Ÿซข โค๏ธโ€๐Ÿ”ฅ ๐Ÿ„๐Ÿปโ€โ™‚๏ธ ๐Ÿง‘๐Ÿปโ€๐Ÿ’ป

Supporting Emojis

Platform Type Size(px) Constant
Apple PNG 64 Apple64
Apple PNG 160 Apple160
Facebook PNG 64 Facebook64
Facebook PNG 96 Facebook96

How it works

It returns the link of the specified emoji that is displayed in the browser.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.