useToasts
useToasts hook that provides a toasty list. There are two hooks that are basically provided and the other is provided by Headless.
import { useToasts } from 'react-strawberry-toast'; import { useToasts as useHeadlessToasts } from 'react-strawberry-toast/dist/headless'; const toasts = useToasts();
The difference between the two hooks is the attribute of the toast item.
API reference
The table below shows the item properties table of the list returned from the useToasts hook. Headless hooks don't include position, containerId, pauseOnHover, toastType.