import { Meta, Story, Canvas } from '@storybook/addon-docs/blocks'; import useToastContent from './usetoast.html' import useMultipleContent from './multiple.html' # useToast **useToast** is accessible through `window.Theme.components.useToast`. ## Concept The useToast function use the markup of [toast-container.tpl](https://github.com/PrestaShop/theme-refacto/blob/develop/templates/components/toast-container.tpl) and [toast.tpl](https://github.com/PrestaShop/theme-refacto/blob/develop/templates/components/toast.tpl). The toast container is placed on the top right of the viewport by default. The toast markup is generated on the fly using the `