UNPKG

bootstrap-vue-3

Version:

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

11 lines (9 loc) 271 B
import {getId} from '../utils' import {computed, type ComputedRef, type Ref} from 'vue' /** * @param id * @param suffix * @returns */ export default (id?: Ref<string | undefined>, suffix?: string): ComputedRef<string> => computed(() => id?.value || getId(suffix))