You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
session-desktop/ts/components/conversation/Emojify.md

1.1 KiB

All emoji

<Emojify text="🔥🔥🔥" i18n={util.i18n} />

With skin color modifier

<Emojify text="👍🏾" i18n={util.i18n} />

With sizeClass provided

<Emojify text="🔥" sizeClass="jumbo" i18n={util.i18n} />
<Emojify text="🔥" sizeClass="large" i18n={util.i18n} />
<Emojify text="🔥" sizeClass="medium" i18n={util.i18n} />
<Emojify text="🔥" sizeClass="small" i18n={util.i18n} />
<Emojify text="🔥" sizeClass="" i18n={util.i18n} />

Starting and ending with emoji

<Emojify text="🔥in between🔥" i18n={util.i18n} />

With emoji in the middle

<Emojify text="Before 🔥🔥 after" i18n={util.i18n} />

No emoji

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