Adds an accessible tooltip to a focusable trigger. The trigger is linked to the tip with aria-describedby; the enhancer shows it on hover/focus with delays, promotes it to the top layer, and dismisses it on Escape.
aria-describedby
<Tooltip content="Save (Cmd+S)"> <Button icon aria-label="Save">...</Button></Tooltip> Copy
<Tooltip content="Save (Cmd+S)"> <Button icon aria-label="Save">...</Button></Tooltip>
Readonly
Optional
Used in debugging messages. You might want to set it explicitly if you want to display a different name for debugging purposes.
Legacy React Docs
Ignored by React.
Only kept in types for backwards compatibility. Will be removed in a future major release.
Adds an accessible tooltip to a focusable trigger. The trigger is linked to the tip with
aria-describedby; the enhancer shows it on hover/focus with delays, promotes it to the top layer, and dismisses it on Escape.