bootstrap-vue-next
Version:
BootstrapVueNext is an early and lovely component library for Vue 3 & Nuxt 3 based on Bootstrap 5 and Typescript.
19 lines (18 loc) • 811 B
JavaScript
import { ref } from "vue";
import { r as rtlPluginKey } from "../../../keys-CwytVEYF.mjs";
const rtlPlugin = {
install(app, options) {
var _a, _b;
const rtlDefault = false;
const localeDefault = void 0;
const rtlInitial = typeof (options == null ? void 0 : options.rtl) === "boolean" ? rtlDefault : ((_a = options == null ? void 0 : options.rtl) == null ? void 0 : _a.rtlInitial) ?? rtlDefault;
const localeInitial = typeof (options == null ? void 0 : options.rtl) === "boolean" ? localeDefault : ((_b = options == null ? void 0 : options.rtl) == null ? void 0 : _b.localeInitial) ?? localeDefault;
const isRtl = ref(rtlInitial);
const locale = ref(localeInitial);
app.provide(rtlPluginKey, { isRtl, locale });
}
};
export {
rtlPlugin
};
//# sourceMappingURL=index.mjs.map