UNPKG

bootstrap-vue

Version:

Quickly integrate Bootstrap 4 components with Vue.js

19 lines (16 loc) 406 B
import { mergeData } from '../../utils' 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)] ) } }