UNPKG

custom-bootstrap-vue

Version:

Custom version of bootstrap-vue created for providing specific theme to a particular project

31 lines (28 loc) 589 B
import Vue from '../../utils/vue' import { mergeData } from 'vue-functional-data-merge' import { toString } from '../../utils/string' export const props = { title: { type: String // default: null }, titleTag: { type: String, default: 'h4' } } // @vue/component export const BCardTitle = /*#__PURE__*/ Vue.extend({ name: 'BCardTitle', functional: true, props, render(h, { props, data, children }) { return h( props.titleTag, mergeData(data, { staticClass: 'card-title' }), children || toString(props.title) ) } })