UNPKG

bootstrap-vue

Version:

Quickly integrate Bootstrap 4 components with Vue.js

41 lines (38 loc) 648 B
import { mergeData } from '../../utils' export const props = { id: { type: String, default: null }, tag: { type: String, default: 'small' }, textVariant: { type: String, default: 'muted' }, inline: { type: Boolean, default: false } } export default { functional: true, props, render (h, { props, data, children }) { return h( props.tag, mergeData(data, { class: { 'form-text': !props.inline, [`text-${props.textVariant}`]: Boolean(props.textVariant) }, attrs: { id: props.id } }), children ) } }