tree
tree copied to clipboard
Tooltip is the same as Label
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' />