1.0.17 • Published 3 years ago

switch-emoji v1.0.17

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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.

GitHubTwitterOpenMoji

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

1.0.17

3 years ago

1.0.16

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.11

3 years ago

1.0.12

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago