react-tippy
react-tippy copied to clipboard
[Feature]: Support singleton
If tooltip has more than 1 child, make it into singleton:
<Tooltip title='I am NOT singleton!'>
<button>Button</button>
</Tooltip>
<Tooltip title='I am singleton!' style={{ display: 'flex' }}>
<button>Button 1</button>
<button>Button 2</button>
</Tooltip>
OR add singleton
prop:
<Tooltip title='I am singleton!' style={{ display: 'flex' }} singleton>
<button>Button 1</button>
<button>Button 2</button>
</Tooltip>
Expected behavior
Tooltip moves between children, following focused
Actual behavior
Tooltip determines half of width of whole children container and sets arrow here