Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to add tooltip on material ui chip component?

The requirement is I have label eg: Color and value eg: orange. So I want to show label as tooltip and value as chip. Is it possible to do with chip? if not is there any other way that I can achieve this.

I am using material-ui version v0.18.7.

like image 763
Hemadri Dasari Avatar asked Aug 31 '25 05:08

Hemadri Dasari


1 Answers

The easiest way to get a basic tooltip is to use the title attribute:

<Chip title="Color">
  Orange
</Chip>

If you want a more powerful tooltip, you can use the Tooltip component added material-ui v1. That will let you have more control over the placement and appearance of the tooltip.

like image 161
Jules Dupont Avatar answered Sep 02 '25 19:09

Jules Dupont