mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-21 13:18:04 +08:00
afcdc3fbe2
* chore: try to fix screenshot * chore: set small viewport * chore: rm wait until * chore: minimize demo * chore: support onlyViewPort * chore: better logic * chore: config demos * chore: update * refactor: rename * chore: update * chore: update * chore: update
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: '300vh', 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;
|