ionicons icon indicating copy to clipboard operation
ionicons copied to clipboard

Input text ionicon

Open ajbraus opened this issue 12 years ago • 5 comments

How do you put an ionicon inside of a text input field? Like a lil search magnifying glass in the search bar.

A :before call? A background image?

ajbraus avatar Mar 30 '14 13:03 ajbraus

ionicon is used in the Ionic Framework and on their site you can find examples of using icons in textfields: http://ionicframework.com/docs/components/#input-icons they use <i class="icon ion-search placeholder-icon"></i> to add an icon inside a textfield.

I highly recommend checking out the (rest of the) framework

bramslob avatar Mar 31 '14 07:03 bramslob

Oh I use ionic, but I also use ionicons in my website. It would be nice to be able to put them in the input fields there too. Just a thought.

On Mar 31, 2014, at 2:03 AM, Bram Slob [email protected] wrote:

ionicon is used in the Ionic Framework and on their site you can find examples of using icons in textfields: http://ionicframework.com/docs/components/#input-icons they use to add an icon inside a textfield.

I highly recommend checking out the (rest of the) framework

— Reply to this email directly or view it on GitHub.

ajbraus avatar Mar 31 '14 14:03 ajbraus

You could use the same markup they use, with the <i>. You would only need to 'riep' the rest of the styling. But if you position the <i> absolute and give the input a left padding, you should be fine.

Good luck ;)

bramslob avatar Mar 31 '14 14:03 bramslob

Yeah, I would say just take a look at how we do it on our docs. @bramslob's link is a good example, as is the search icon in the searchbox on http://ionicons.com

bensperry avatar Mar 31 '14 19:03 bensperry

Thanks!

ajbraus avatar Apr 02 '14 16:04 ajbraus