Where is the Tooltip positioned towards the target element.
usePortal
Boolean
false
-
Whether to use React.createPortal for creating tooltip.
System Props
This component does not allow any system props.
System Props
Next to the properties listed in the propstable, a collection of system props can be added to any component for further general styling and layouting purposes. These props vary per component.
The children you provide to the component, will be the elements that are wrapped
by the tooltip. If no children are provided, the component will fallback to an
information-icon.
It's all about me
<Tooltip
id="children1"
label="I am wrapping the fallback component"
/>
<Tooltip
id="children2"
label="I am wrapping a custom component"
>
<Paperp={3}elevation={3}>
<Text>It's all about me</Text>
</Paper>
</Tooltip>
Label
default: undefined
The label is the text that is displayed inside the tooltip.
<Tooltipid="label"label="I can display text"/>
Placement
default: top
You can also change the placement of the label.
Note: this only sets the default placement. If it's placement would fall
outside of the window (e.g. when scrolled to the bottom), it will adapt
accordingly.