JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 121
  • Score
    100M100P100Q74648F
  • License MIT

Custom Material Design inspired SnackBar notifications

Package Exports

  • js-snackbar

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (js-snackbar) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

js-snackbar

Custom SnackBar notifications inspired by Material Design and node-snackbar

Installation

npm install js-snackbar

Usage

// require css for your app's bundle process
require('../node_modules/js-snackbar/dist/snackbar.css');

import {show} from 'js-snackbar';

show({pos: 'bottom-right'});

Run Locally

Global Dependencies:

npm install -g npm3
 
npm3 install -g webpack webpack-dev-server

Fire up the local server @ http://localhost:8080

npm3 run dev

Build ouput in the dist folder

npm3 run dist

Inspiration

This repo was lovingly forked and hacked from the awesome node-snackbar

A few of the changes:

  • Ability to use an action icon button
  • Ability to display a notify icon
  • Ability to display a notify image
  • Local React hacking environment
  • ES6 modules
  • Module bundling with Webpack and Babel