Contextual help or information about specific components that appears on hover.
Alternatively, you can provide a ReactNode or ReactFragment as the message:
Use the placement
prop to change the placement of the tooltip.
Use the openSpeed
prop to change the delay before showing the tooltip.
Use the keyboardShortcut
prop to display a keyboard shortcut in the tooltip.
For a list of supported keys see Mousetrap.
Tooltip must have a single element as a child.
Name | Default | Description |
---|---|---|
isDisabled | false | boolean Disable the tooltip. |
message | — | ReactElement | string | number | ReactFragment Tooltip message. |
keyboardShortcut | — | string The keyboard shortcut to display in the tooltip. Use the `+` symbol to separate characters. |
placement | "top" | PlacementWithLogical The placement of the tooltip. |
children | — | ReactElement | string | number | boolean | undefined Element to show tooltip around. |
openSpeed | "immediate" | "immediate" | "slow" Show the tooltip immediately or wait 500ms. |