mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-29 13:47:02 +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;
|