Electron-vue: Is there a Bootstrap 4 implementation of this?

Created on 23 Feb 2018  路  3Comments  路  Source: SimulatedGREG/electron-vue

Just wondering if anyone has added Bootstrap 4 to the library or if there's any instructions anyone could give on this, before I try it.

Most helpful comment

Adding bootstrap is no different to adding any other CSS lib, though it feels wrong to bring in jQuery ;p

npm install bootstrap-4 popper.js jquery --save

Then add the following to src/renderer/main.js

/* eslint-disable no-unused-vars */
import $ from 'jquery'
import 'bootstrap/dist/css/bootstrap.min.css'
import 'bootstrap/dist/js/bootstrap.bundle.min.js'

Then add something to LandingPage.vue, for example, source from: https://getbootstrap.com/docs/4.0/examples/jumbotron/

enter image description here

Maybe that helps.

All 3 comments

Adding bootstrap is no different to adding any other CSS lib, though it feels wrong to bring in jQuery ;p

npm install bootstrap-4 popper.js jquery --save

Then add the following to src/renderer/main.js

/* eslint-disable no-unused-vars */
import $ from 'jquery'
import 'bootstrap/dist/css/bootstrap.min.css'
import 'bootstrap/dist/js/bootstrap.bundle.min.js'

Then add something to LandingPage.vue, for example, source from: https://getbootstrap.com/docs/4.0/examples/jumbotron/

enter image description here

Maybe that helps.

Thanks for the reply. I ended up using ElementUI.

bootstrap-vue npm package exists
https://www.npmjs.com/package/bootstrap-vue

Was this page helpful?
0 / 5 - 0 ratings