tree icon indicating copy to clipboard operation
tree copied to clipboard

Tooltip is the same as Label

Open allan-bonadio opened this issue 1 year ago • 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: <TreeNode label='California' tooltip='where Silicon Valley is' />

allan-bonadio avatar May 19 '23 16:05 allan-bonadio