#What is cleanest way to align leftSection in TextInput

5 messages · Page 1 of 1 (latest)

weak ibex
gusty smelt
weak ibex
#

That does not work for this use case as my text is dynamic and varies in size. I will need to add ref on leftSection, find width and then set it. It works pretty well in NumberInput where I can just provide a prefix/suffix but those props don't work for TextInput.

gusty smelt
weak ibex
#

This acts weird when user changes the value. But I was able to make it work using a ref for now. Thanks @gusty smelt