You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 753B

4 years ago
12345678910111213141516171819202122232425262728293031323334
  1. # @sweetalert2/theme-bootstrap-4 - Bootstrap 4 Theme for [SweetAlert2](https://github.com/sweetalert2/sweetalert2)
  2. [![npm version](https://img.shields.io/npm/v/@sweetalert2/theme-bootstrap-4.svg)](https://www.npmjs.com/package/@sweetalert2/theme-bootstrap-4)
  3. Installation
  4. ------------
  5. ```sh
  6. npm install --save sweetalert2 @sweetalert2/theme-bootstrap-4
  7. ```
  8. Usage
  9. -----
  10. With CSS:
  11. ```html
  12. <!-- Include the Bootstrap 4 theme -->
  13. <link rel="stylesheet" href="@sweetalert2/theme-bootstrap-4/bootstrap-4.css">
  14. <script src="sweetalert2/dist/sweetalert2.min.js"></script>
  15. ```
  16. With SASS:
  17. `your-app.js`:
  18. ```js
  19. import Swal from 'sweetalert2/src/sweetalert2.js'
  20. ```
  21. `your-app.scss`:
  22. ```scss
  23. @import '~@sweetalert2/theme-bootstrap-4/bootstrap-4.scss';
  24. ```