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.
27 lines (24 loc) • 501 B
JavaScript
import { mergeData } from 'vue-functional-data-merge';
export var props = {
id: {
type: String,
default: null
},
tag: {
type: String,
default: 'h6'
}
};
export default {
functional: true,
props: props,
render: function render(h, _ref) {
var props = _ref.props,
data = _ref.data,
children = _ref.children;
return h(props.tag, mergeData(data, {
staticClass: 'dropdown-header',
attrs: { id: props.id || null }
}), children);
}
};