🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

react-emoji-ng

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-emoji-ng

An emoji component for React

latest
Source
npmnpm
Version
0.7.0
Version published
Maintainers
1
Created
Source

react-emoji-ng

Build Status Coverage Status

simple emoji component for react

exports

import * as React from "react";
export declare enum EmojiType {
    TWITTER = 0,
    EMOJIONE = 1,
    SYMBOLS = 2,
}
export interface IReactEmojiProps {
    attrs?: React.HTMLAttributes<HTMLElement>;
    imgAttrs?: React.HTMLAttributes<HTMLImageElement>;
    svgAttrs?: React.SVGAttributes<SVGSVGElement>;
    children: string;
    symbolsUrl?: string;
    type?: EmojiType;
    tag?: string;
}
export declare const ReactEmoji: React.SFC<IReactEmojiProps>;

usage

<ReactEmoji>foo :smile: :(</ReactEmoji>

renders to

<div>
  {"foo "}
  <img
    width="20px"
    height="20px"
    src="https://twemoji.maxcdn.com/svg/1f604.svg"
  />
  {" "}
  <img
    width="20px"
    height="20px"
    src="https://twemoji.maxcdn.com/svg/1f61e.svg"
  />
</div>

Keywords

react

FAQs

Package last updated on 08 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts