react-stacked-toast

<Toaster /> API

Available options

<Toaster
position="right"
toastOptions={{
duration: 3 * 1000,
icon: '👋',
style: {
backgroundColor: '#333',
color: '#fff',
},
}}
/>
PropsTypeDefaultDescription
position'right' | 'center' | 'left''right'The position of the toaster on the screen
toastOptionsobject{}Options for customizing the appearance of toasts
OptionsTypeDescription
durationnumberThe duration of the toast notification in milliseconds. Default is 3000
iconReactNodeThe icon to be displayed in the toast notification.
styleCSSPropertiesThe custom styles for the toast notification.

Usage

import { Toaster } from 'react-stacked-toast';
<Toaster />;