mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 17:19:11 +08:00
18 lines
428 B
TypeScript
18 lines
428 B
TypeScript
|
import React from 'react';
|
||
|
import { FloatButton } from 'antd';
|
||
|
|
||
|
const App: React.FC = () => (
|
||
|
<div style={{ height: '500vh', padding: 10 }}>
|
||
|
<div>Scroll to bottom</div>
|
||
|
<div>Scroll to bottom</div>
|
||
|
<div>Scroll to bottom</div>
|
||
|
<div>Scroll to bottom</div>
|
||
|
<div>Scroll to bottom</div>
|
||
|
<div>Scroll to bottom</div>
|
||
|
<div>Scroll to bottom</div>
|
||
|
<FloatButton.BackTop />
|
||
|
</div>
|
||
|
);
|
||
|
|
||
|
export default App;
|