react-component/tree

Tooltip is the same as Label

allan-bonadio opened this issue · 0 comments

If I have an item labeled "California", when I hover over it, the tooltip also says "California". Why would I want a tooltip like that? The tooltip is supposed to say something informative - something different.

Maybe this is a design mistake. To add a tooltip in native HTML, you use the 'title' attribute on an element. Unfortunately, you chose the same name for the label on your items.

There should be two props because there are two different concepts: