Very nice, but part of the reusable component design lives in the theme config..😔
Check out stitches js being built by modulz. It utilizes styled-system and styled-component under the hood to provide first class support for variant, compound variant, etc all right within the component itself. It will blow you away!!
E.g
const{styled}="@stitches/react";constButton=styled("button",{// base styles,variants:{variant:{},size:{}},compoundVariants:[{variant:// value,size:// value,css:{}// apply styles},// other compound variants],defaultVariants:{variant:// value,size:// value}});
Hope it helps.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Very nice, but part of the reusable component design lives in the theme config..😔
Check out stitches js being built by modulz. It utilizes styled-system and styled-component under the hood to provide first class support for variant, compound variant, etc all right within the component itself. It will blow you away!!
E.g
Hope it helps.