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.
19 lines (16 loc) • 420 B
JavaScript
import { mergeData } from 'vue-functional-data-merge'
import Link, { propsFactory as linkPropsFactory } from '../link/link'
export const props = linkPropsFactory()
export default {
functional: true,
props,
render (h, { props, data, children }) {
return h(
'li',
mergeData(data, {
staticClass: 'nav-item'
}),
[h(Link, { staticClass: 'nav-link', props }, children)]
)
}
}