UNPKG

bootstrap-vue-next

Version:

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

14 lines (13 loc) 487 B
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