signal-desktop/ts/components/conversation/Emojify.md
2019-07-17 11:29:51 -07:00

887 B

All emoji

<Emojify text="🔥🔥🔥" />

With skin color modifier

<Emojify text="👍🏾" />

With sizeClass provided

<Emojify text="🔥" sizeClass="jumbo" />
<Emojify text="🔥" sizeClass="large" />
<Emojify text="🔥" sizeClass="medium" />
<Emojify text="🔥" sizeClass="small" />
<Emojify text="🔥" sizeClass="" />

Starting and ending with emoji

<Emojify text="🔥in between🔥" />

With emoji in the middle

<Emojify text="Before 🔥🔥 after" />

No emoji

<Emojify text="This is the text" />
const renderNonEmoji = ({ text, key }) => (
  <span key={key}>This is my custom content</span>
);
<Emojify text="Before 🔥🔥 after" renderNonEmoji={renderNonEmoji} />;