UNPKG

bootstrap-vue

Version:

BootstrapVue, with over 40 plugins and more than 80 custom components, custom directives, and over 300 icons, provides one of the most comprehensive implementations of Bootstrap v4 components and grid system for Vue.js. With extensive and automated WAI-AR

36 lines (33 loc) 825 B
import Vue from '../../utils/vue' import { mergeData } from 'vue-functional-data-merge' export const props = { tag: { type: String, default: 'div' }, fluid: { // String breakpoint name new in Bootstrap v4.4.x type: [Boolean, String], default: false } } // @vue/component export const BContainer = /*#__PURE__*/ Vue.extend({ name: 'BContainer', functional: true, props, render(h, { props, data, children }) { return h( props.tag, mergeData(data, { class: { container: !(props.fluid || props.fluid === ''), 'container-fluid': props.fluid === true || props.fluid === '', // Bootstrap v4.4+ responsive containers [`container-${props.fluid}`]: props.fluid && props.fluid !== true } }), children ) } })