UNPKG

bootstrap-vue

Version:

Quickly integrate Bootstrap 4 components with Vue.js

28 lines (25 loc) 420 B
import { mergeData } from '../../utils' export const props = { id: { type: String, default: null }, tag: { type: String, default: 'div' } } export default { functional: true, props, render (h, { props, data, children }) { return h( props.tag, mergeData(data, { staticClass: 'input-group-addon', attrs: { id: props.id } }), children ) } }