order | title | ||||
---|---|---|---|---|---|
1 |
|
可以获得是否固定的状态。
Callback with affixed state.
import { Affix, Button } from 'infrad';
import React from 'react';
const App: React.FC = () => (
<Affix offsetTop={120} onChange={affixed => console.log(affixed)}>
<Button>120px to affix top</Button>
</Affix>
);
export default App;