bootstrap-vue-next
Version:
BootstrapVueNext is an early and lovely component library for Vue 3 & Nuxt 3 based on Bootstrap 5 and Typescript.
14 lines (13 loc) • 487 B
JavaScript
const getElement = (element, root = typeof document !== "undefined" ? document : void 0) => {
if (!element) return void 0;
if (typeof element === "string") {
if (typeof root === "undefined" || typeof document === "undefined") return void 0;
const idElement = document.getElementById(element);
return idElement ?? root.querySelector(element) ?? void 0;
}
return element.$el ?? element;
};
export {
getElement as g
};
//# sourceMappingURL=getElement-DrDVR-jO.mjs.map