2018-05-18 21:48:20 +00:00
|
|
|
### All emoji
|
|
|
|
|
|
|
|
```jsx
|
2019-06-27 20:35:21 +00:00
|
|
|
<Emojify text="🔥🔥🔥" />
|
2018-05-18 21:48:20 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### With skin color modifier
|
|
|
|
|
|
|
|
```jsx
|
2019-06-27 20:35:21 +00:00
|
|
|
<Emojify text="👍🏾" />
|
2018-05-18 21:48:20 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### With `sizeClass` provided
|
|
|
|
|
|
|
|
```jsx
|
2019-06-27 20:35:21 +00:00
|
|
|
<Emojify text="🔥" sizeClass="jumbo" />
|
2018-05-18 21:48:20 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
```jsx
|
2019-06-27 20:35:21 +00:00
|
|
|
<Emojify text="🔥" sizeClass="large" />
|
2018-05-18 21:48:20 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
```jsx
|
2019-06-27 20:35:21 +00:00
|
|
|
<Emojify text="🔥" sizeClass="medium" />
|
2018-05-18 21:48:20 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
```jsx
|
2019-06-27 20:35:21 +00:00
|
|
|
<Emojify text="🔥" sizeClass="small" />
|
2018-05-18 21:48:20 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
```jsx
|
2019-06-27 20:35:21 +00:00
|
|
|
<Emojify text="🔥" sizeClass="" />
|
2018-05-18 21:48:20 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### Starting and ending with emoji
|
|
|
|
|
|
|
|
```jsx
|
2019-06-27 20:35:21 +00:00
|
|
|
<Emojify text="🔥in between🔥" />
|
2018-05-18 21:48:20 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### With emoji in the middle
|
|
|
|
|
|
|
|
```jsx
|
2019-06-27 20:35:21 +00:00
|
|
|
<Emojify text="Before 🔥🔥 after" />
|
2018-05-18 21:48:20 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### No emoji
|
|
|
|
|
|
|
|
```jsx
|
2019-06-27 20:35:21 +00:00
|
|
|
<Emojify text="This is the text" />
|
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>
|
|
|
|
);
|
2019-06-27 20:35:21 +00:00
|
|
|
<Emojify text="Before 🔥🔥 after" renderNonEmoji={renderNonEmoji} />;
|
2018-05-18 21:48:20 +00:00
|
|
|
```
|