UNPKG

@ulu/frontend

Version:

A framework-agnostic frontend toolkit providing a modular, tree-shakable library of accessible components and utilities. Designed for seamless integration, it features a highly configurable SCSS system for any environment and vanilla JavaScript modules op

17 lines (16 loc) 354 B
function i(e, r) { const t = new MutationObserver((o) => { o.forEach((n) => { if (n.attributeName === "open") { const s = e.hasAttribute("open"); r(s); } }); }); return t.observe(e, { attributes: !0, attributeFilter: ["open"] }), { destroy: () => t.disconnect() }; } export { i as observeDialogToggle };