Tooltip API
API reference docs for theTooltip
component. For examples and details on the usage of this component, visit the component demo page.
Props
Props | Type | Description | Default |
---|---|---|---|
children | (props: { triggerProps: TooltipTriggerProps<React.ElementType>}) => React.ReactNode | The child element that the tooltip will wrap, such as a button or other interactive element. | _ |
content | string | The text or content that will be displayed inside the tooltip. | _ |
|
| An optional ID for the tooltip. If no value is provided, an ID will be automatically generated | _ |
maxWidth? | number | The maximum width of the popover. | 200 |
|
Internally imports | Defines the tooltip's placement relative to the trigger element. |
|
shouldUsePortal? | boolean | Whether the tooltip should be placed within a React Portal. | true |
|
Internally imports | The strategy used to position the floating element. |
|
visibilityHidden? | boolean | Controls the visibility of tooltip. When set to true tooltip will not render and removes all events in trigger element | false |