Skip to content

A simple, lightweight vanilla JavaScript snackbar/toast library with no dependencies. Works standalone or seamlessly blends with Material Web components, adapting to your site's theme when available.

License

Notifications You must be signed in to change notification settings

shantoislamdev/minisnackbar

Repository files navigation

MiniSnackbar

TypeScript License

A simple, lightweight vanilla JavaScript snackbar/toast library with no dependencies. Works standalone or seamlessly blends with Material Web components, adapting to your site's theme when available. Since Material Web doesn't provide a snackbar component, this library fills that gap.

Author: Shanto Islam (shantoislamdev.web.app) License: MIT
Repository: github.com/shantoislamdev/minisnackbar

Installation

npm install minisnackbar

Usage

// ES Module
import { Snackbar } from 'minisnackbar'

// CommonJS
const { Snackbar } = require('minisnackbar')

// Initialize
Snackbar.init()

// Show a message
Snackbar.add('Hello, world!')

Browser Support

  • Chrome 60+
  • Firefox 55+
  • Safari 12+
  • Edge 79+

Documentation

For full documentation, API reference, and advanced usage, see docs.md.

License

MIT

About

A simple, lightweight vanilla JavaScript snackbar/toast library with no dependencies. Works standalone or seamlessly blends with Material Web components, adapting to your site's theme when available.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published