@atlaskit/width-detector
v6.2.0
Published
Wrapper for components that need to respond to width changes
Downloads
115,988
Maintainers
Readme
Width-detector
This package provides utilities that inform children or callbacks of the available width.
Installation
yarn add @atlaskit/width-detectorUsage
You can see examples learn more about the usage of this component.
Notes
The default export WidthDetector is deprecated. Follow our upgrade guide and
examples to migrate to
WidthObserver.
Migration guide can be found here.
Acknowledgements
This size detection method used by this component is inspired by Federico Zivolo's awesome react-resize-aware project, which Atlassian has contributed a PR back to.
