🛝 Playground
1const config: Partial<ReactToastConfig> = {2position: "bottom-right",3type: "base",4title: "base",5order: "normal",6inAnimation: slideVerticallyIn,7outAnimation: slideVerticallyOut,8inBodyAnimation: slideHorizontalWithFadeInBody,9autoHide: 7000,10theme: "",11hideOnClick: true,12showProgress: true,13showIcon: true,14showHideButton: true,15animateBody: true,16rtl: false,17pauseOnHover: true,18dragOnMobile: true,19};20add(config);
1<Toaster2position={"bottom-right"}3type={"base"}4title={"base"}5order={"normal"}6inAnimation={slideVerticallyIn}7outAnimation={slideVerticallyOut}8inBodyAnimation={slideHorizontalWithFadeInBody}9autoHide={7000}10theme={""}11hideOnClick12showProgress13showIcon14showHideButton15animateBody16rtl={false}17pauseOnHover18dragOnMobile19visibleToasts={5}20/>
🎉 Features
- easy to use
- easy to customize
- beautiful by default
- smooth animations
- ability to override the id
- optional title
- 6 available positions on the screen
- normal or reversed display order
- 5 available types: base, info, success, warning, error
- 3 themes: light, dark and colorful
- 8 built-in enter animations
- 8 built-in exit animations
- 3 built-in optional body animations
- ability to create custom animation with ease
- limit the number of toasts visible on the screen at once
- right-to-left support
- custom styling
- optional ability to drag on mobile
- 5 available callbacks