Text Input with Expanding Bottom Border
Petr Gazarov published a pretty rad little design pattern in his article Text input highlight, TripAdvisor style.
It’s a trick! You can’t really make an
stretch like that, so Petr makes a
to sync the value too, which acts as the border itself. The whole thing is a React component.
If you’re willing to use a
instead, you could do the whole thing in CSS!
Although that also means no