@atlaskit/width-detector
TypeScript icon, indicating that this package has built-in type declarations

4.3.1 • Public • Published

Width-detector

This is a utility component that informs the child function 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 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.

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.

Readme

Keywords

Package Sidebar

Install

npm i @atlaskit/width-detector

Weekly Downloads

11,590

Version

4.3.1

License

Apache-2.0

Unpacked Size

60.5 kB

Total Files

43

Last publish

Collaborators

  • atlassianartifactteam
  • atlaskit-user