UNPKG

bootstrap-vue-next

Version:

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

19 lines (18 loc) 655 B
import { b as rtlRegistryKey } from "../../../keys-CQKrwmvN.mjs"; import { ref } from "vue"; //#region src/plugins/rtl/index.ts var rtlPlugin = { install(app, options) { const rtlDefault = false; const localeDefault = void 0; const rtlInitial = typeof options?.rtl === "boolean" ? rtlDefault : options?.rtl?.rtlInitial ?? rtlDefault; const localeInitial = typeof options?.rtl === "boolean" ? localeDefault : options?.rtl?.localeInitial ?? localeDefault; const isRtl = ref(rtlInitial); const locale = ref(localeInitial); app.provide(rtlRegistryKey, { isRtl, locale }); } }; //#endregion export { rtlPlugin }; //# sourceMappingURL=index.mjs.map