npm

Does your artifact manager get in the way? Join us on Oct. 8 at 10am PT, to discuss how npm can help.Sign up »

@rebean/snackbar

0.0.3-alpha.0 • Public • Published

Rebean Snackbar

Snackbar behavior based on Material Design guidelines

Installation

This module is available as a npm package. To start using it, you have to install it first.

npm install --save @rebean/snackbar

After installing it, you have to add snackbar reducer to your root reducer.

import { createStore, combineReducers } from 'redux';
import { snackbarReducer } from '@rebean/snackbar';
 
const rootReducer = combineReducers({
  // ...your other reducers here
  // you have to pass snackbarReducer under 'snackbar' key,
  snackbar: snackbarReducer
});
 
const store = createStore(rootReducer);

Now you can connect it to your components - redux knows how to handle snackbar actions.

Usage

Contributing

License

MIT

Keywords

none

install

npm i @rebean/snackbar

Downloadsweekly downloads

24

version

0.0.3-alpha.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability