mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-06 02:15:35 +08:00
11 lines
240 B
TypeScript
11 lines
240 B
TypeScript
|
import React from 'react';
|
||
|
import { Affix, Button } from 'antd';
|
||
|
|
||
|
const App: React.FC = () => (
|
||
|
<Affix offsetTop={120} onChange={affixed => console.log(affixed)}>
|
||
|
<Button>120px to affix top</Button>
|
||
|
</Affix>
|
||
|
);
|
||
|
|
||
|
export default App;
|