Skip to content

Commit a89045c

Browse files
committed
Update the documentation for version 5.12.3
1 parent 8ea366e commit a89045c

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

_data/versions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
- latest (5.12.1)
1+
- latest (5.12.3)
22
- "5.11"
33
- "5.10"
44
- "5.9"

doc/5.12/useNotify.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,15 @@ notify(
145145
);
146146
```
147147

148+
You also need to set the `multiLine` option to `true` when your message contains line breaks (`\n`):
149+
150+
```jsx
151+
notify(
152+
'Line 1\nLine 2\nLine 3',
153+
{ multiLine: true }
154+
);
155+
```
156+
148157
## `type`
149158

150159
This option lets you choose the notification type. It can be `info`, `success`, `warning` or `error`. The default is `info`.

useNotify.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,15 @@ notify(
145145
);
146146
```
147147

148+
You also need to set the `multiLine` option to `true` when your message contains line breaks (`\n`):
149+
150+
```jsx
151+
notify(
152+
'Line 1\nLine 2\nLine 3',
153+
{ multiLine: true }
154+
);
155+
```
156+
148157
## `type`
149158

150159
This option lets you choose the notification type. It can be `info`, `success`, `warning` or `error`. The default is `info`.

0 commit comments

Comments
 (0)