rbus avatar

A guide to Bootstrap 4 within Vue Apps

rbus

Published: 22 Apr 2021 › Updated: 22 Apr 2021A guide to Bootstrap 4 within Vue Apps

A guide to Bootstrap 4 within Vue Apps

nueva-beta-de-bootstrap-4.jpg
Setting up a Bootstrap and Vue project

Hello hivers!!! This time i would like to showcase another vue framework you could use in your projects :D

This time the framework is called Bootstrap-Vue and its just a wrapper of the very known library Bootstrap :D

Let’s create a new Vue CLI project:

$ vue create bootstrap-vue-app

You can now add the Bootstrap-Vue plugin to your project.

$ vue add bootstrap-vue

Components

Almost all of the features of Bootstrap are available as globally registered components in Bootstrap-Vue. They are prefixed with b-

Create a component or edit the pre-defined ones and insert some bootstrap components just like

<template> 
  <b-container> 
    <p>This is a bootstrap container!!!</p> 
     <b-btn variant="primary">Click</b-btn> 
  </b-container> 
 </template>

Let’s now serve the app we’ve created

npm run serve

Now you should see the following:
19d38cfa23404e905e5e3ff294be378d.png

There are many, many pre-defined components easy to use and with the bootstrap aspect widely used.
Please check bootstrap vue for more info: https://bootstrap-vue.org/

Leave A guide to Bootstrap 4 within Vue Apps to:

Written by

Read more #vue posts


Best Posts From rbus

We have not curated any of rbus's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From rbus