localvoid / ivi

Lighweight Embeddable Web UI Library
MIT License
724 stars 22 forks source link

missing support for static style props #47

Closed leeoniya closed 1 year ago

leeoniya commented 1 year ago

image

localvoid commented 1 year ago

I'll implement it today.

Also, I would like to add an optimization with Typed API for styles that would require some additional syntax. Maybe something like ~padding-top.px={paddingTop}. Internally it will reuse the same typed object. It is going to reduce memory allocations when working with styles and makes diffing style values a little bit faster.