Skip to content

Commit

Permalink
update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
danie-ramdhani committed Mar 23, 2024
1 parent e658ec8 commit 97175a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ ToastNotification.create({
| position.x | String | The horizontal position of the toast element on the screen. Can be `"left"`, `"center"`, or `"right"`. If `position.x` is not specified, the default value will be used. | "right" |
| position.y | String | The vertical position of the toast element on the screen. Can be `"top"`, or `"bottom"`. If `position.y` is not specified, the default value will be used. | "bottom" |
| position.z | Number | The z-index of the toast element. If `position.z` is not specified, the default value will be used. | 50 |
| marginWidth | String | Add margin x axis | null |
| redirect | String or Object | You can pass url string here or you can pass object with key `url` and `newWindow`. if the value is url string, the link will automatically open the url in new window. | null |
| redirect.url | String | The URL to redirect to when the toast element is clicked. | null |
| redirect.newWindow | String | Whether to open the redirect URL in a new window or in the current one. | true |
Expand Down

0 comments on commit 97175a9

Please sign in to comment.