Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CopyBlock prop 'theme' incompatible with CodeBlock prop 'theme' #161

Open
fnune opened this issue Jun 19, 2024 · 0 comments
Open

CopyBlock prop 'theme' incompatible with CodeBlock prop 'theme' #161

fnune opened this issue Jun 19, 2024 · 0 comments

Comments

@fnune
Copy link

fnune commented Jun 19, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant