npm.io
6.2.0 • Published 2 weeks ago

@atlaskit/width-detector

Licence
Apache-2.0
Version
6.2.0
Deps
3
Size
65 kB
Vulns
0
Weekly
0

Width-detector

This package provides utilities that inform children or callbacks of the available width.

Installation

yarn add @atlaskit/width-detector

Usage

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.

Keywords