mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-16 01:29:11 +08:00
16 lines
406 B
TypeScript
16 lines
406 B
TypeScript
|
import React from 'react';
|
||
|
import { Button, Tooltip } from 'antd';
|
||
|
|
||
|
const App: React.FC = () => (
|
||
|
<>
|
||
|
<Tooltip placement="topLeft" title="Prompt Text">
|
||
|
<Button>Align edge / 边缘对齐</Button>
|
||
|
</Tooltip>
|
||
|
<Tooltip placement="topLeft" title="Prompt Text" arrowPointAtCenter>
|
||
|
<Button>Arrow points to center / 箭头指向中心</Button>
|
||
|
</Tooltip>
|
||
|
</>
|
||
|
);
|
||
|
|
||
|
export default App;
|