0.0.1 • Published 6 years ago

material-dialog v0.0.1

Weekly downloads
9
License
MIT
Repository
-
Last release
6 years ago

Material Dialog

A simple js library to display material-design styled modal or dialog.

How To Install

npm install --save material-dialog

How To Use

Browser

<script src="dist/material-dialog.js"></script>
<script>
new Dialog({
  title: 'Use Google\'s location service?',
  body: 'Let Google help apps determine location. This means sending anonymous location data to Google, even when no apps are running.',
  size: 'medium'
}).show()
</script>

Moduled Style

import Dialog from 'material-dialog'

new Dialog({
  title: 'Use Google\'s location service?',
  body: 'Let Google help apps determine location. This means sending anonymous location data to Google, even when no apps are running.',
  size: 'medium'
}).show()

License

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