react-code-blocks icon indicating copy to clipboard operation
react-code-blocks copied to clipboard

`CopyBlock` prop 'theme' incompatible with `CodeBlock` prop 'theme'

Open fnune opened this issue 2 weeks ago • 0 comments

image

I'd have expected the types to be compatible, but they don't overlap sufficiently.

It seems like CodeBlock's theme prop is styled-component's DefaultTheme interface, whereas CopyBlock's is this library's own Theme interface.

Should they be the same? Otherwise how can I safely pass e.g. the monoBlue theme to CodeBlock?

fnune avatar Jun 19 '24 09:06 fnune