UNPKG

vuestic-ui

Version:
15 lines (14 loc) 459 B
import { computed } from "vue"; import { u as unwrapEl } from "../utils/unwrapEl.js"; const useHTMLElementSelector = (key) => { return computed(() => { if (typeof (key == null ? void 0 : key.value) === "string") { return document == null ? void 0 : document.querySelector(key.value); } return unwrapEl(key == null ? void 0 : key.value); }); }; export { useHTMLElementSelector as u }; //# sourceMappingURL=useHTMLElementSelector.js.map