2988da0981
Biggest changes forced by this: alt tags for all images, resulting in new strings added to messages.json, and a new i18n paramter/prop added in a plot of places. Another change of note is that there are two new tslint.json files under ts/test and ts/styleguide to relax our rules a bit there. This required a change to our package.json script, as manually specifying the config file there made it ignore our tslint.json files in subdirectories
46 lines
833 B
Markdown
46 lines
833 B
Markdown
### All components: emoji, links, newline
|
|
|
|
```jsx
|
|
<MessageBody
|
|
text="Fire 🔥 http://somewhere.com\nSecond Line"
|
|
i18n={util.i18n}
|
|
/>
|
|
```
|
|
|
|
### Jumbo emoji
|
|
|
|
```jsx
|
|
<MessageBody text="🔥" i18n={util.i18n} />
|
|
```
|
|
|
|
```jsx
|
|
<MessageBody text="🔥🔥" i18n={util.i18n} />
|
|
```
|
|
|
|
```jsx
|
|
<MessageBody text="🔥🔥🔥🔥" i18n={util.i18n} />
|
|
```
|
|
|
|
```jsx
|
|
<MessageBody text="🔥🔥🔥🔥🔥🔥🔥🔥" i18n={util.i18n} />
|
|
```
|
|
|
|
```jsx
|
|
<MessageBody text="🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥" i18n={util.i18n} />
|
|
```
|
|
|
|
```jsx
|
|
<MessageBody text="🔥 text disables jumbomoji" i18n={util.i18n} />
|
|
```
|
|
|
|
### Jumbomoji disabled
|
|
|
|
```jsx
|
|
<MessageBody text="🔥" disableJumbomoji i18n={util.i18n} />
|
|
```
|
|
|
|
### Links disabled
|
|
|
|
```jsx
|
|
<MessageBody text="http://somewhere.com" disableLinks i18n={util.i18n} />
|
|
```
|