Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 421 Bytes

on-change.md

File metadata and controls

27 lines (20 loc) · 421 Bytes
order title
1
zh-CN en-US
固定状态改变的回调
Callback

zh-CN

可以获得是否固定的状态。

en-US

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;