Icon tooltip
Closed this issue · 6 comments
simakwm commented
All icons have a "title" prop with the name of the icon inside.
Is there a way to set this prop manually?
zamarrowski commented
I don't understand the question because in the new version the title prox does not exists. Can you post a pic or a code with this issue?
simakwm commented
zamarrowski commented
Ouh! I didn't know this! But it's a good feature. Maybe tomorrow I will bump a new version with a new prop called title or tooltip. For example:
<AirplaneOutline
color={'#00000'}
height="250px"
width="250px"
title="Airplane"
/>
Or something like that.
Do you like that way to change the title?
simakwm commented
Sounds great if title defaults to "" =)
zamarrowski commented
I released a new version (4.2.0) adding the title prop. You can try this in the doc page changing the title prop 😄
https://react-ionicons.netlify.app/
simakwm commented
I've just tested it in my project here. Sweet!
Thank you!