Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

🧗‍♂️ 自动计算宽高的react组件(React components that automatically calculate width and height)

License

NotificationsYou must be signed in to change notification settings

niexq/react-auto-sizer

Repository files navigation

Welcome to react-auto-sizer 👋

VersionDocumentationMaintenanceMaintenanceLicense: MITGitmoji

React components that automatically calculate width and height

简体中文 | English

📦 Install

  yarn add @oyyds/react-auto-sizer# or npm i @oyyds/react-auto-sizer -S

🔨 Use

importAutoSizerfrom'@oyyds/react-auto-sizer';constAutoSizeComponent=()=>{return(<div><AutoSizer>{({ width, height})=>(<divstyle={{              width,              height,}}>            Content area</div>)}</AutoSizer></div>);};

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to checkissues page.

❤️ Show your support

Give a ⭐️ if this project helped you!

📝 License

This project isMIT licensed.

🐳 Link

react-virtualized-auto-sizer
ResizeObserver

🌐 Browsers support

Chrome
Chrome
IE / Edge
Edge
Firefox
Firefox
Safari
Internet Explorer
Opera
Opera
Safari
Safari
Safari
WebView Android
Chrome
Chrome Android
Firefox
Firefox Android
Opera
Opera Android
Safari
Safari iOS
Samsung
Samsung Internet
6479695113.16464794713.49.0

About

🧗‍♂️ 自动计算宽高的react组件(React components that automatically calculate width and height)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp