Styled-components would support this natively, I think. That should be fairly easy to drop in to your code examples above. Or a similar css-in-js solution.
Either that, or you'd need to allow users to import the CSS file directly, similar to how react-toastify handles it.
What's the error you're getting? A TS error or a Rollup error? (I am also pretty clueless with rollup, also a CRA boi)
Styled-components would support this natively, I think. That should be fairly easy to drop in to your code examples above. Or a similar css-in-js solution.
Either that, or you'd need to allow users to import the CSS file directly, similar to how
react-toastify
handles it.What's the error you're getting? A TS error or a Rollup error? (I am also pretty clueless with rollup, also a CRA boi)
When running
npm start
: