How to put an icon in a "text input" component like in the image.
How to put an icon in a "text input" component like in the image.
At a glance
The community member tried to make an icon "float" above a "text input" component, but clicking the icon did not select the input component. The comments suggest two solutions: 1) adding pointer-events: none to the icon, and 2) adding left padding to the input to make the text start after the icon. There is no explicitly marked answer in the comments.