Skip to content

A simple library to display material-design-styled snackbar

Notifications You must be signed in to change notification settings

ibnujakaria/snackbar-js

Repository files navigation

snackbar-js

A simple material-design-styled snackbar you can use in any page of your projects.

Installation

# download github
https://github.com/ibnujakaria/snackbar-js/archive/v1.0.9.zip

# npm
npm install --save snackbar-js

How to Use

Web

<script src="dist/snackbar.js"></script>
<script>
  Snackbar
    .create()
    .setText('Hello world! :)')
    .setStyle('center') // or you can use .setStyle('left')
    .show()
</script>

CommonJS

import Snackbar from 'snackbar-js'

Snackbar
  .create()
  .setText('Hello world! :)')
  .setStyle('center') // or you can use .setStyle('left')
  .show()
  

License

The project is open-sourced software licensed under the MIT license.

About

A simple library to display material-design-styled snackbar

Resources

Stars

Watchers

Forks

Packages

No packages published