You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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";
<root.div ref={shadowRef} id="shadowRoot">
<style type="text/css">{tailwindCSS}</style>
{/* ... */}
</root.div>`
The text was updated successfully, but these errors were encountered: