UNPKG

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.

30 lines (27 loc) 499 B
import { mergeData } from 'vue-functional-data-merge' export const props = { tag: { type: String, default: 'div' }, verticalAlign: { type: String, default: 'top' } } export default { functional: true, props, render (h, { props, data, children }) { return h( props.tag, mergeData(data, { staticClass: 'd-flex', class: { [`align-self-${props.verticalAlign}`]: props.verticalAlign } }), children ) } }