@rebean/snackbar
TypeScript icon, indicating that this package has built-in type declarations

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

Readme

Keywords

none

Package Sidebar

Install

npm i @rebean/snackbar

Weekly Downloads

0

Version

0.0.3-alpha.0

License

MIT

Unpacked Size

25.7 kB

Total Files

13

Last publish

Collaborators

  • piotr-oles