Chronstruct / primitives

MIT License
3 stars 0 forks source link

On prop-based styles (for extracted/compiled away values) #103

Open kylpo opened 2 years ago

kylpo commented 2 years ago

I, personally, really like this API. But, I have recently felt that it may not be the best.

The problem with prop-based styles of compile-time, extracted primitives: they deceive the user. They aren't native props that may be dynamic. They're a different kind of prop, that doesn't really have a way to identify itself as different. [idea: maybe a new naming convention could help? _width={50} to denote a compile-away value? This way, the user would know to not have anything dynamic here.]

Consider css={``} instead, since folks are more used to this being a special prop?