- Notifications
You must be signed in to change notification settings - Fork0
🧗♂️ 自动计算宽高的react组件(React components that automatically calculate width and height)
License
NotificationsYou must be signed in to change notification settings
niexq/react-auto-sizer
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
React components that automatically calculate width and height
简体中文 | English
yarn add @oyyds/react-auto-sizer# or npm i @oyyds/react-auto-sizer -S
importAutoSizerfrom'@oyyds/react-auto-sizer';constAutoSizeComponent=()=>{return(<div><AutoSizer>{({ width, height})=>(<divstyle={{ width, height,}}> Content area</div>)}</AutoSizer></div>);};
Contributions, issues and feature requests are welcome!
Feel free to checkissues page.
Give a ⭐️ if this project helped you!
This project isMIT licensed.
react-virtualized-auto-sizer
ResizeObserver
![]() Chrome | ![]() Edge | ![]() Firefox | ![]() Internet Explorer | ![]() Opera | ![]() Safari | ![]() WebView Android | ![]() Chrome Android | ![]() Firefox Android | ![]() Opera Android | ![]() Safari iOS | ![]() Samsung Internet |
---|---|---|---|---|---|---|---|---|---|---|---|
64 | 79 | 69 | ❌ | 51 | 13.1 | 64 | 64 | 79 | 47 | 13.4 | 9.0 |
About
🧗♂️ 自动计算宽高的react组件(React components that automatically calculate width and height)
Topics
Resources
License
Stars
Watchers
Forks
Packages0
No packages published