-
-
Notifications
You must be signed in to change notification settings - Fork 444
Closed
Description
MDN doc says:
The
HTMLElement.titleproperty represents the title of the element: the text usually displayed in a 'tooltip' popup when the mouse is over the node.
However, react-share uses title for totally unrelated purposes IIUC. This makes it somewhat hard to put a tooltip with a different text on a share button in some cases.
My Particular Example
If using with MUI Tooltip, I would get the following warning:
MUI: You have provided a
titleprop to the child of<Tooltip />.
Remove this title propShare this pageor the Tooltip component.
Code:
<Tooltip title="content of tooltip">
<TwitterShareButton url="https://example.com" title="Share this page">
<TwitterIcon round />
</TwitterShareButton>
</Tooltip>
I see this warning legitimate due to the cited MDN doc above.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels