You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of creating a bunch of custom components, it's super easy to just declare the variant on the component instead of all the other props as well. I also rather use sx prop than the style prop.
The text was updated successfully, but these errors were encountered:
Note that the best approach still is to create custom components. The theming based approach always has the downside of improving bundle size globally and makes discoverability of the implementation harder.
Summary 馃挕
Just like you can set style on a custom variant, we should be able to set all the other props for each variant.
Examples 馃寛
Motivation 馃敠
Instead of creating a bunch of custom components, it's super easy to just declare the variant on the component instead of all the other props as well. I also rather use sx prop than the style prop.
The text was updated successfully, but these errors were encountered: