Skip to content

Commit 8ffb5f2

Browse files
committed
feature: add zIndex prop
1 parent d827ba7 commit 8ffb5f2

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ You can import react-notification-alert in your application like so:
1414

1515
After that, in your component render method add the following line:
1616

17-
`<NotificationAlert ref="notificationAlert" />`
17+
`<NotificationAlert ref="notificationAlert" zIndex="1031" />`
1818

1919
We've used `ref="notificationAlert"` property on the `NotificationAlert` tag to access this components properties.
2020

@@ -29,6 +29,9 @@ Do not forget to import our styles in your project:
2929
import "react-notification-alert/dist/animate.css";
3030
```
3131

32+
### *zIndex*
33+
If you want to add a special zIndex to the notification, if not, `9999` will be set as default.
34+
3235
## *options* parameter
3336

3437
This parameter has to be a javascript object with the following props:
@@ -41,6 +44,7 @@ var options = {
4144
icon: ,
4245
autoDismiss: ,
4346
closeButton: ,
47+
zIndex: ,
4448
}
4549
```
4650

0 commit comments

Comments
 (0)