UNPKG

bootstrap-vue

Version:

BootstrapVue provides one of the most comprehensive implementations of Bootstrap 4 components and grid system for Vue.js and with extensive and automated WAI-ARIA accessibility markup.

26 lines (22 loc) 462 B
import { mergeData } from 'vue-functional-data-merge' export const props = { tag: { type: String, default: 'div' }, flush: { type: Boolean, default: false } } export default { functional: true, props, render (h, { props, data, children }) { const componentData = { staticClass: 'list-group', class: { 'list-group-flush': props.flush } } return h(props.tag, mergeData(data, componentData), children) } }