2018-05-18 21:48:20 +00:00
|
|
|
### All emoji
|
|
|
|
|
|
|
|
```jsx
|
2018-05-22 19:31:43 +00:00
|
|
|
<Emojify text="🔥🔥🔥" i18n={util.i18n} />
|
2018-05-18 21:48:20 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### With skin color modifier
|
|
|
|
|
|
|
|
```jsx
|
2018-05-22 19:31:43 +00:00
|
|
|
<Emojify text="👍🏾" i18n={util.i18n} />
|
2018-05-18 21:48:20 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### With `sizeClass` provided
|
|
|
|
|
|
|
|
```jsx
|
2018-05-22 19:31:43 +00:00
|
|
|
<Emojify text="🔥" sizeClass="jumbo" i18n={util.i18n} />
|
2018-05-18 21:48:20 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
```jsx
|
2018-05-22 19:31:43 +00:00
|
|
|
<Emojify text="🔥" sizeClass="large" i18n={util.i18n} />
|
2018-05-18 21:48:20 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
```jsx
|
2018-05-22 19:31:43 +00:00
|
|
|
<Emojify text="🔥" sizeClass="medium" i18n={util.i18n} />
|
2018-05-18 21:48:20 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
```jsx
|
2018-05-22 19:31:43 +00:00
|
|
|
<Emojify text="🔥" sizeClass="small" i18n={util.i18n} />
|
2018-05-18 21:48:20 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
```jsx
|
2018-05-22 19:31:43 +00:00
|
|
|
<Emojify text="🔥" sizeClass="" i18n={util.i18n} />
|
2018-05-18 21:48:20 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### Starting and ending with emoji
|
|
|
|
|
|
|
|
```jsx
|
2018-05-22 19:31:43 +00:00
|
|
|
<Emojify text="🔥in between🔥" i18n={util.i18n} />
|
2018-05-18 21:48:20 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### With emoji in the middle
|
|
|
|
|
|
|
|
```jsx
|
2018-05-22 19:31:43 +00:00
|
|
|
<Emojify text="Before 🔥🔥 after" i18n={util.i18n} />
|
2018-05-18 21:48:20 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### No emoji
|
|
|
|
|
|
|
|
```jsx
|
2018-05-22 19:31:43 +00:00
|
|
|
<Emojify text="This is the text" i18n={util.i18n} />
|
2018-05-18 21:48:20 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### Providing custom non-link render function
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
const renderNonEmoji = ({ text, key }) => (
|
|
|
|
<span key={key}>This is my custom content</span>
|
|
|
|
);
|
2018-05-22 19:31:43 +00:00
|
|
|
<Emojify
|
|
|
|
text="Before 🔥🔥 after"
|
|
|
|
renderNonEmoji={renderNonEmoji}
|
|
|
|
i18n={util.i18n}
|
|
|
|
/>;
|
2018-05-18 21:48:20 +00:00
|
|
|
```
|