We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
When using styled, the props passed to the component are added to the HTML element as attributes.
styled
props
For instance, the following component:
type AppProps = { foo: boolean; bar: number; }; const App: Component<AppProps> = styled.main``; const root = document.getElementById('root'); render(() => <App foo={true} bar={42} />, root!);
Will result in the following DOM:
Here is the code of a simple repro case.
It might be related to #6.
The text was updated successfully, but these errors were encountered:
Isn't this solved by using the shouldForwardProp helper?
shouldForwardProp
Docs: https://github.com/solidjs/solid-styled-components#shouldforwardprop
Sorry, something went wrong.
No branches or pull requests
Hi,
When using
styled
, theprops
passed to the component are added to the HTML element as attributes.For instance, the following component:
Will result in the following DOM:
Here is the code of a simple repro case.
It might be related to #6.
The text was updated successfully, but these errors were encountered: