zamarrowski/react-ionicons

Icon tooltip

Closed this issue · 6 comments

All icons have a "title" prop with the name of the icon inside.
Is there a way to set this prop manually?

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?

Captura de Tela 2021-02-08 às 19 24 42
Captura de Tela 2021-02-08 às 19 54 00
Here they are. Also, inspecting the code I found a <title></title> in every icon.

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?

Sounds great if title defaults to "" =)

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/

I've just tested it in my project here. Sweet!
Thank you!