I was trying to use the percent unit (%) from CSS to my Kotlin React file, it has the others unit but I cant find this one. I was looking in Length.kt. If there's not that unit, how could I do the same? I'm trying to make an input with 50% height compared to its parent. I'm new in Kotlin. Please help!
Asked
Active
Viewed 173 times
1 Answers
3
Try 50.pct - That's how it works in Kotlin React

Jesus Perez Curbelo
- 31
- 3
-
Is there a documentation for hwo CSS is translated into Kotlin? – four-eyes Nov 22 '22 at 09:06
-
I haven't found documentation - just information I've learned from tutorials, and trial and error :/ – Jesus Perez Curbelo Nov 24 '22 at 23:15