@@ -134,19 +134,21 @@ If `gravity` is equals to `bottom`, it will be pushed from bottom.
134134| text | string | Message to be displayed in the toast | "Hi there!" |
135135| node | ELEMENT_NODE | Provide a node to be mounted inside the toast. ` node ` takes higher precedence over ` text ` | |
136136| duration | number | Duration for which the toast should be displayed.<br >-1 for permanent toast | 3000 |
137- | selector | string | CSS Selector on which the toast should be added | body |
137+ | selector | string \| ELEMENT_NODE | ShadowRoot | CSS Selector or Element Node on which the toast should be added | body |
138138| destination | URL string | URL to which the browser should be navigated on click of the toast | |
139139| newWindow | boolean | Decides whether the ` destination ` should be opened in a new window or not | false |
140140| close | boolean | To show the close icon or not | false |
141141| gravity | "top" or "bottom" | To show the toast from top or bottom | "top" |
142142| position | "left" or "right" | To show the toast on left or right | "right" |
143- | backgroundColor | CSS background value | Sets the background color of the toast | |
143+ | backgroundColor | CSS background value | To be deprecated, use ` style.background ` option instead. Sets the background color of the toast | |
144144| avatar | URL string | Image/icon to be shown before text | |
145145| className | string | Ability to provide custom class name for further customization | |
146146| stopOnFocus | boolean | To stop timer when hovered over the toast (Only if duration is set) | true |
147147| callback | Function | Invoked when the toast is dismissed | |
148148| onClick | Function | Invoked when the toast is clicked | |
149149| offset | Object | Ability to add some offset to axis | |
150+ | escapeMarkup | boolean | Toggle the default behavior of escaping HTML markup | true |
151+ | style | object | Use the HTML DOM Style properties to add any style directly to toast | |
150152
151153## Browsers support
152154
0 commit comments