BootstrapVue
With bootstrap-vue you can easily use standard bootstrap 4 components with your app.
Setup
- Add
@nuxtjs/bootstrap-vue
dependency using yarn or npm to your project - Add
@nuxtjs/bootstrap-vue
tomodules
section ofnuxt.config.js
{
modules: [
// Simple usage
'@nuxtjs/bootstrap-vue',
// With options
['@nuxtjs/bootstrap-vue', { css: false }],
]
}
Usage
<template>
<b-alert show>
Hello Bootstrap!
</b-alert>
</template>
Options
css
Default: true
Add Bootstrap 4 css files to global CSS. You may want to disable this if you have a custom bootstrap build.