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.

31 lines (28 loc) 650 B
import { mergeData } from 'vue-functional-data-merge' import { assign } from '../../utils/object' import BreadcrumbLink, { props as crumbLinks } from './breadcrumb-link' export const props = assign({}, crumbLinks, { text: { type: String, default: null }, href: { type: String, default: null } }) export default { functional: true, props, render (h, { props, data, children }) { return h( 'li', mergeData(data, { staticClass: 'breadcrumb-item', class: { active: props.active }, attrs: { role: 'presentation' } }), [h(BreadcrumbLink, { props }, children)] ) } }