pianello-api/resources/js/vendor/tailwind-merge/index.js

11 lines
292 B
JavaScript
Raw Normal View History

import * as tailwindMerge from "tailwind-merge";
const { twMerge } = tailwindMerge;
document.querySelectorAll("[data-tw-merge]").forEach((el) => {
el.setAttribute("class", twMerge(el.getAttribute("class")));
el.removeAttribute("data-tw-merge");
});
window.twMerge = tailwindMerge;