mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-23 15:08:34 +08:00
11 lines
242 B
TypeScript
11 lines
242 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;
|