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.
35 lines (32 loc) • 560 B
JavaScript
import { mergeData } from 'vue-functional-data-merge'
export const props = {
tag: {
type: String,
default: 'ul'
},
fill: {
type: Boolean,
default: false
},
justified: {
type: Boolean,
default: false
}
}
export default {
functional: true,
props,
render (h, { props, data, children }) {
return h(
props.tag,
mergeData(data, {
staticClass: 'navbar-nav',
class: {
'nav-fill': props.fill,
'nav-justified': props.justified
}
}),
children
)
}
}