ant-design/components/float-button/demo/back-top.tsx
MadCcc afcdc3fbe2
chore: try to fix screenshot ()
* 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
2023-09-14 16:59:11 +08:00

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;