The tip is shown on mouse enter, and is hidden on mouse leave. The Tooltip doesn't support complex text or operations.
To provide an explanation of a button/text/operation. It's often used instead of the html title attribute.
2
<Tooltip content="Tooltip content">
3
<Button>Tooltip</Button>
3
<Row style={{ width: '500px' }}>
5
<Tooltip content="Tooltip content Tooltip content" placement="top">
6
<Button style={{ minWidth: '100px' }}>top</Button>
10
<Tooltip content="Tooltip content Tooltip content" placement="top-start">
11
<Button style={{ minWidth: '100px' }}>top-start</Button>
15
<Tooltip content="Tooltip content Tooltip content" placement="top-end">
16
<Button style={{ minWidth: '100px' }}>top-end</Button>
21
content="Tooltip content Tooltip content Tooltip content Tooltip content"
24
<Button style={{ minWidth: '100px' }}>right</Button>
29
content="Tooltip content Tooltip content Tooltip content Tooltip content"
30
placement="right-start"
32
<Button style={{ minWidth: '100px' }}>right-start</Button>
37
content="Tooltip content Tooltip content Tooltip content Tooltip content"
40
<Button style={{ minWidth: '100px' }}>right-end</Button>
45
content="Tooltip content Tooltip content Tooltip content Tooltip content"
48
<Button style={{ minWidth: '100px' }}>left</Button>
53
content="Tooltip content Tooltip content Tooltip content Tooltip content"
54
placement="left-start"
56
<Button style={{ minWidth: '100px' }}>left-start</Button>
61
content="Tooltip content Tooltip content Tooltip content Tooltip content"
64
<Button style={{ minWidth: '100px' }}>left-end</Button>
69
content="Tooltip content Tooltip content Tooltip content Tooltip content"
72
<Button style={{ minWidth: '100px' }}>bottom</Button>
77
content="Tooltip content Tooltip content Tooltip content Tooltip content"
78
placement="bottom-start"
80
<Button style={{ minWidth: '100px' }}>bottom-start</Button>
85
content="Tooltip content Tooltip content Tooltip content Tooltip content"
86
placement="bottom-end"
88
<Button style={{ minWidth: '100px' }}>bottom-end</Button>
3
<Tooltip content="Tooltip content" trigger="click">
6
<Tooltip content="Tooltip content">
Arrow prop can be set to display a arrow.
2
<Tooltip content="Tooltip content" arrow={false}>
3
<Tooltip content="Tooltip" disabled>
4
<Button>Reference</Button>
Delay in seconds, before tooltip is shown on mouse enter or hidden on mouse leave.
3
<Tooltip content="tooltip" delay={1000}>
4
<Button>Reference</Button>
2
const [visible, setVisible] = React.useState(true);
3
const show = () => setVisible(true);
4
const hide = () => setVisible(false);
6
<Tooltip content="tooltip">
7
<Button onClick={visible ? hide : show}>Reference</Button>
Determines if the tooltip has interactive content inside of it, so that it can be hovered over and clicked inside without hiding.
3
<Tooltip content="tooltip" interactive>
4
<Button>interactive</Button>