vuetify
Version:
Vue.js 2 Semantic Component Framework
18 lines (12 loc) • 336 B
JavaScript
export default {
name: 'v-card-title',
functional: true,
props: {
primaryTitle: Boolean
},
render (h, { data, props, children }) {
data.staticClass = (`card__title ${data.staticClass || ''}`).trim()
if (props.primaryTitle) data.staticClass += ' card__title--primary'
return h('div', data, children)
}
}