@atlaskit/width-detector

Wrapper for components that need to respond to width changes

Usage no npm install needed!

<script type="module">
  import atlaskitWidthDetector from 'https://cdn.skypack.dev/@atlaskit/width-detector';
</script>

README

Width-detector

This is a utility component that informs the child function of the available width.

Installation

yarn add @atlaskit/width-detector

Usage

Detailed docs and example usage 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.