UNPKG

bootstrap-vue-3

Version:

Early (but lovely) implementation of Vue 3, Bootstrap 5 and Typescript

17 lines (15 loc) 365 B
import {computed, ComputedRef, Ref} from 'vue' import type {Alignment} from '../types' /** * * @param props * @returns */ export default (align: Ref<Alignment>): ComputedRef<string> => computed(() => align.value === 'center' ? 'justify-content-center' : align.value === 'end' ? 'justify-content-end' : 'justify-content-start' )