@sweetalert2/theme-material-ui
v5.0.20
Published
Material UI theme for SweetAlert2
Downloads
8,236
Maintainers
Readme
@sweetalert2/theme-material-ui - Material UI Theme for SweetAlert2
Installation
npm install --save sweetalert2 @sweetalert2/theme-material-ui
Usage
With CSS:
<!-- Include the Material UI theme -->
<link rel="stylesheet" href="@sweetalert2/theme-material-ui/material-ui.css">
<script src="sweetalert2/dist/sweetalert2.min.js"></script>
With SASS:
your-app.js
:
import Swal from 'sweetalert2/dist/sweetalert2.js';
your-app.scss
:
@import '@sweetalert2/theme-material-ui/material-ui.scss';