-
-
Notifications
You must be signed in to change notification settings - Fork 197
Expand file tree
/
Copy pathshowArrow.tsx
More file actions
92 lines (87 loc) · 2.45 KB
/
showArrow.tsx
File metadata and controls
92 lines (87 loc) · 2.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
import React from 'react';
import Tooltip from 'rc-tooltip';
import '../../assets/bootstrap_white.less';
const text = <span>Tooltip Text</span>;
const styles: React.CSSProperties = {
display: 'table-cell',
height: '60px',
width: '80px',
textAlign: 'center',
background: '#f6f6f6',
verticalAlign: 'middle',
border: '5px solid white',
};
const rowStyle: React.CSSProperties = {
display: 'table-row',
};
const Test: React.FC = () => (
<div style={{ display: 'table', padding: 120 }}>
<div style={rowStyle}>
<Tooltip placement="left" overlay={text} showArrow={false}>
<a href="#" style={styles}>
Left
</a>
</Tooltip>
<Tooltip placement="top" overlay={text} showArrow={false}>
<a href="#" style={styles}>
Top
</a>
</Tooltip>
<Tooltip placement="bottom" overlay={text} showArrow={false}>
<a href="#" style={styles}>
Bottom
</a>
</Tooltip>
<Tooltip placement="right" overlay={text} showArrow={false}>
<a href="#" style={styles}>
Right
</a>
</Tooltip>
</div>
<div style={rowStyle}>
<Tooltip placement="leftTop" overlay={text} showArrow={false}>
<a href="#" style={styles}>
Left Top
</a>
</Tooltip>
<Tooltip placement="leftBottom" overlay={text} showArrow={false}>
<a href="#" style={styles}>
Left Bottom
</a>
</Tooltip>
<Tooltip placement="rightTop" overlay={text} showArrow={false}>
<a href="#" style={styles}>
Right Top
</a>
</Tooltip>
<Tooltip placement="rightBottom" overlay={text} showArrow={false}>
<a href="#" style={styles}>
Right Bottom
</a>
</Tooltip>
</div>
<div style={rowStyle}>
<Tooltip placement="topLeft" overlay={text} showArrow={false}>
<a href="#" style={styles}>
Top Left
</a>
</Tooltip>
<Tooltip placement="topRight" overlay={text} showArrow={false}>
<a href="#" style={styles}>
Top Right
</a>
</Tooltip>
<Tooltip placement="bottomLeft" overlay={text} showArrow={false}>
<a href="#" style={styles}>
Bottom Left
</a>
</Tooltip>
<Tooltip placement="bottomRight" overlay={text} showArrow={false}>
<a href="#" style={styles}>
Bottom Right
</a>
</Tooltip>
</div>
</div>
);
export default Test;