Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Percent unit from CSS to Kotlin React?

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!

like image 332
DomeScoppe Avatar asked Nov 04 '25 07:11

DomeScoppe


1 Answers

Try 50.pct - That's how it works in Kotlin React

like image 129
Jesus Perez Curbelo Avatar answered Nov 06 '25 21:11

Jesus Perez Curbelo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!