mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-04 00:49:39 +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;
|