JetBrains / compose-for-web-demos

Historical repository of early Compose for Web effort.
170 stars 6 forks source link

Styles and inline styles #1

Open altavir opened 3 years ago

altavir commented 3 years ago

Contrary to mobile development, in web we usually want yo use styled elements, both with inline styles and with external styles. In order to do so, we must have a block like css in styled, which could accept both string references to external styles and style combinators. It is possible to pass additional configurator labmda block to each element constructor, but I do not like the design. If it would be possible to define css block inside the composable body (to affect parent) it would be much better.