-
-
Notifications
You must be signed in to change notification settings - Fork 197
Expand file tree
/
Copy pathtwoButtons.tsx
More file actions
29 lines (27 loc) · 776 Bytes
/
twoButtons.tsx
File metadata and controls
29 lines (27 loc) · 776 Bytes
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
import { UniqueProvider } from '@rc-component/trigger';
import React from 'react';
import '../../assets/bootstrap.less';
import Tooltip from '../../src';
const TwoButtonsDemo = () => (
<UniqueProvider>
<div style={{ margin: 100 }}>
<Tooltip
placement="top"
trigger={['hover']}
overlay="This is the first tooltip"
motion={{ motionName: 'rc-tooltip-zoom' }}
>
<button type="button">Button 1</button>
</Tooltip>
<Tooltip
placement="top"
trigger={['hover']}
overlay="This is the second tooltip"
motion={{ motionName: 'rc-tooltip-zoom' }}
>
<button type="button">Button 2</button>
</Tooltip>
</div>
</UniqueProvider>
);
export default TwoButtonsDemo;