1.0.2 • Published 6 years ago
daemonite-material-additions v1.0.2
daemonite-material-additions
Additional modules for Daemonite's Material Bootstrap. This repo exists because not all components in http://daemonite.github.io/material/docs/4.1/getting-started/introduction/ have JavaScript interfaces for them.
Current modules:
- Snackbar
Installation
Just your regular
yarn add daemonite-material-additions
or
npm install --save daemonite-material-additions
Module: Snackbar
The Snackbar module renders 'Snackbars' as demonstrated at http://daemonite.github.io/material/docs/4.1/material/snackbars/
Usage
import {Snackbar} from 'daemonite-material-additions';
Snackbar.render({
html: 'Some message you want to display',
button: '<a href="#">Cool</a>',
classes: 'additional classes you want to add',
timeout: 10000, // Default = 4000ms
});
Thanks
Thanks alot to the folks at https://github.com/Daemonite and their https://github.com/Daemonite/material repo, it's literally the best out there, I've seen em all!