chanan / BlazorStyled

CSS in Blazor Components
https://blazorstyled.io
The Unlicense
191 stars 19 forks source link

Inherit Styles #114

Open sanchez opened 3 years ago

sanchez commented 3 years ago

Heyo, is there a way for a styles to be inherited from other styles? I am currently looking at doing a button type control which has a base styling, and then either a primary or secondary styling based on some parameters supplied. My current method of thinking is to have separate styles for base, primary, and secondary, then have a get property that just toggles between the classnames based on the parameters.

Thanks, Daniel