react-tippy icon indicating copy to clipboard operation
react-tippy copied to clipboard

[Feature]: Support singleton

Open VityaSchel opened this issue 3 years ago • 0 comments

Singleton documentation

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

VityaSchel avatar Jun 16 '21 21:06 VityaSchel