You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

29 lines
699 B

import { Button, Tooltip } from 'antd';
import React from 'react';
const App: React.FC = () => {
React.useEffect(() => {
document.documentElement.scrollTop = document.documentElement.clientHeight;
document.documentElement.scrollLeft = document.documentElement.clientWidth;
}, []);
return (
<div>
<div
style={{
width: '300vw',
height: '300vh',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
}}
>
<Tooltip title="Thanks for using antd. Have a nice day!" open>
<Button>Scroll The Window</Button>
</Tooltip>
</div>
</div>
);
};
export default App;