diff --git a/docs-templates/toast.md b/docs-templates/toast.md index db06fc84f..039632fe4 100644 --- a/docs-templates/toast.md +++ b/docs-templates/toast.md @@ -10,6 +10,31 @@ the +We can utilize the `toastWrapper` prop to add animations and other wrappers +around the toast. + +Example: + +```jsx + ( + + {children} + + )} + toastTypes={{ + primary: ({ content }) => {content}, + }} +> + + +``` + +We also have to add the `animationTimeout` inorder to specify a delay before +removing the toast from the state, this would ensure the CSS or any other +animations has the chance to finish without being interrupted. +