Wrapper for components that need to respond to width changes
This is a utility component that informs the child function of the available width.
``sh``
yarn add @atlaskit/width-detector
You can see examples learn
more about the usage of this component.
The default export WidthDetector will be deprecated in the next major release of width-detector.
Follow our upgrade guide and
examples to migrate to
WidthObserver.
Migration guide can be found here.
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.