Your source code:
function ___$insertStyle(css) { if (!css || typeof window === 'undefined') { return; } const style = document.createElement('style'); style.setAttribute('type', 'text/css'); style.innerHTML = css; document.head.appendChild(style); return css; }
I want to use in shadowDOM , But i can't use your class. So can you provide a props to insert class to my node, or css file? e.g.
`import root from "react-shadow/styled-components";
import tailwindCSS from "@/styles/tailwind.less?inline";
Your source code:
function ___$insertStyle(css) { if (!css || typeof window === 'undefined') { return; } const style = document.createElement('style'); style.setAttribute('type', 'text/css'); style.innerHTML = css; document.head.appendChild(style); return css; }
I want to use in shadowDOM , But i can't use your class. So can you provide a props to insert class to my node, or css file? e.g. `import root from "react-shadow/styled-components"; import tailwindCSS from "@/styles/tailwind.less?inline";