UNPKG

bootstrap-vue-next

Version:

Seamless integration of Vue 3, Bootstrap 5, and TypeScript for modern, type-safe UI development

1 lines 606 B
{"version":3,"file":"useId-BKZFSYm8.mjs","names":[],"sources":["../src/composables/useId.ts"],"sourcesContent":["import {withBvnPrefix} from '../utils/keys'\nimport {computed, type ComputedRef, type MaybeRefOrGetter, toValue, useId as vueUseId} from 'vue'\n\nexport const useId = (\n id?: MaybeRefOrGetter<string | undefined>,\n suffix?: string\n): ComputedRef<string> => {\n const genId = vueUseId()\n return computed(() => toValue(id) || withBvnPrefix(genId || '', suffix))\n}\n"],"mappings":";;;AAGA,IAAa,WACX,IACA,WACwB;CACxB,MAAM,QAAQ,OAAU;AACxB,QAAO,eAAe,QAAQ,GAAG,IAAI,cAAc,SAAS,IAAI,OAAO,CAAC"}