switch-emoji
TypeScript icon, indicating that this package has built-in type declarations

1.0.17 • Public • Published

Switch Emoji 💃

No longer mantained. Consider using svg-emojis.


Semoji CI codecov CodeFactor bundlephobia

Consistent emojis across devices.

Choose your emoji flavor from Twemoji, GitHub emojis, or OpenMoji.

GitHub Twitter OpenMoji

Installation

npm install --save switch-emoji

Usage

import { Semoji } from "switch-emoji";

export function SomeComponent() {
  return <Semoji emoji="👋" source="GitHub" />;
}

You can wrap Semoji to create you own Emoji React component with your flavor of choice:

import React from "react";
import { Semoji, SemojiProps } from "switch-emoji";

type Props = Omit<SemojiProps, "source">;

export function Emoji(props: Props): JSX.Element | null {
  return <Semoji {...props} source="Twitter" />;
}

Read the documentation 📘.

TypeScript

The component is written in TypeScript and type definitions are included.

Contributing

All type of contributions are welcome!

Show your support

Give a ⭐️ if you like this project!

LICENSE

MIT

Dependencies (0)

    Dev Dependencies (23)

    Package Sidebar

    Install

    npm i switch-emoji

    Weekly Downloads

    3

    Version

    1.0.17

    License

    MIT

    Unpacked Size

    9.72 kB

    Total Files

    7

    Last publish

    Collaborators

    • mauriciorobayo