Easily display delicious toast notifications with oh-snack.

oh-snack allows you to easily show tost/snackbar notifications to your website’s visitor. It supports 6 different positions on screen out of the box and you can also set a timeout to hide.

Just install:

npm i oh-snack


import { snack } from 'oh-snack';

And enjoy a toast:

snack("I'm a toast.");

snack("Hi, I'm a sticky notification up here.", {
  position: 'topRight',
  timeout: false,

Find it on GitHub: https://github.com/TimoBechtel/oh-snack

I worked on oh-snack as part of the 111-Challenge on following days: Days 44, 46, 48, 49