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
Just to kickstart a reflexion I had.
Would be glad to implement this feature if there is a common agreement.
Proposed API
import{styled,tag}from'styletron-vue'constRedStyle=styled({color: red})constRedButton=tag('button',RedStyle)newVue({components: {
RedStyle,
RedButton,},template: ` <red-style tag="h1">i'm red title</red-style> <red-style tag="h6">i'm small red title</red-style> <red-button type="button">i'm red button</red-button> `})
Purpose
It will allow to play with styles and compose with more flexibility. It can simplify style reuse for quick usage.
The text was updated successfully, but these errors were encountered:
+1 for this, I think it's a nice idea...though this could this not be achieved by doing:
constStyledComponent=styled('component',{color: 'red'})newVue({components: {
StyledComponent
},template: ` <styled-component is="h1">I'm a red title</styled-component> <styled-component is="h6">I'm a small red title</styled-component> `})
Just to kickstart a reflexion I had.
Would be glad to implement this feature if there is a common agreement.
Proposed API
Purpose
It will allow to play with styles and compose with more flexibility. It can simplify style reuse for quick usage.
The text was updated successfully, but these errors were encountered: