From 08a2f73fa0dcc0f8e76efc685391bb16edf50e26 Mon Sep 17 00:00:00 2001 From: tpilius-ais Date: Fri, 29 May 2026 11:04:16 -0400 Subject: [PATCH] Update API doc to include center position --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1465ed4..ca42b2e 100644 --- a/README.md +++ b/README.md @@ -143,7 +143,7 @@ If `gravity` is equals to `bottom`, it will be pushed from bottom. | newWindow | boolean | Decides whether the `destination` should be opened in a new window or not | false | | close | boolean | To show the close icon or not | false | | gravity | "top" or "bottom" | To show the toast from top or bottom | "top" | -| position | "left" or "right" | To show the toast on left or right | "right" | +| position | "left" or "center" or "right" | The toast horizontal positioning | "right" | | backgroundColor | CSS background value | To be deprecated, use `style.background` option instead. Sets the background color of the toast | | | avatar | URL string | Image/icon to be shown before text | | | className | string | Ability to provide custom class name for further customization | |