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
attrs
Have you considered adding styled components composition attrs API?
Example for this library.
import styled from "solid-styled-components" const First = styled("div").attrs((props: { size: number }) => ({ weight: Math.max(100, Math.min(1000, size)) })` font-weight: ${props => props.weight}; ` const First = styled("div").attrs({ weight: 500 })` font-weight: ${props => props.weight}; `
It's great for adding default or derived props that apply to element attributes.
I may be able to provide the PR.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Have you considered adding styled components composition
attrs
API?Example for this library.
It's great for adding default or derived props that apply to element attributes.
I may be able to provide the PR.
The text was updated successfully, but these errors were encountered: