Open mizi-lin opened 1 year ago
/** convert a style object to a CSS class name */ const niceColors = style({ transition: 'color .2s', color: 'blue', $nest: { '&:hover': { color: 'red' } } }); <h1 className={niceColors}>Hello world</h1>
https://typestyle.github.io/#/core
<Met color='red' nest={{ '&:hover': { color: 'red' } }} />
https://typestyle.github.io/#/core