A simple js library to display material-design styled modal or dialog.
npm install --save material-dialog
<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>
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()
The project is open-sourced software licensed under the MIT license.