UNPKG

bootstrap-vue-3

Version:

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

12 lines (10 loc) 322 B
import {eagerComputed} from '@vueuse/core' import type {Ref} from 'vue' import type {Alignment} from '../types' /** * * @param align * @returns */ export default (align: Ref<Alignment.JustifyContent | undefined>): Readonly<Ref<string>> => eagerComputed(() => (!align.value ? '' : `justify-content-${align.value}`))