-
Notifications
You must be signed in to change notification settings - Fork 253
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
Extend variants while composing components #333
Comments
@schonert thanks for this 💯 Something we've talked about. Will see if we can fit that in the next beta release. /cc @jonathantneal |
@schonert This has been implemented in beta. |
omg this next release is nuts 🤯 |
We've published a pre-release of Stitches beta 🚀 Core: npm install @stitches/[email protected] React: npm install @stitches/[email protected] This issue should have been resolved in the beta version. We'd appreciate it if you could verify it. |
Is your feature request related to a problem? Please describe.
Creating a base component library with the goal of being easily customisable and extendable. In this case i'd like the ability to extend the parent components variants rather then overwrite them.
Describe the solution you'd like
The component library exports a Button component handling size, type, disabled, icons etc. By importing and using this Button to compose your own button with custom styling - variants are not overwritten.
In the example below the entire primary and link types are overwritten in FancyButton
The text was updated successfully, but these errors were encountered: