# @atlaskit/size-detector

> Wrapper for components that need to respond to size changes

Latest version **10.0.3** (published 2020-11-19) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @atlaskit/size-detector
pnpm add @atlaskit/size-detector
yarn add @atlaskit/size-detector
bun add @atlaskit/size-detector
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 10.0.3 |
| Published | 2020-11-19 |
| First published | 2017-08-31 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 27.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Atlassian Pty Ltd |
| Maintainers | atlaskit |

## Links

- npm: https://www.npmjs.com/package/@atlaskit/size-detector
- Repository: https://bitbucket.org/atlassian/atlassian-frontend
- Homepage: https://bitbucket.org/atlassian/atlassian-frontend#readme
- npm.io page: https://npm.io/package/@atlaskit/size-detector

## Dependencies (2)

- [raf-schd](https://npm.io/package/raf-schd.md) ^2.1.0
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.0.0

## Recent versions

- 10.0.3 (latest) — 2020-11-19
- 10.0.2 — 2020-08-27
- 10.0.1 — 2020-08-24
- 10.0.0 — 2020-07-02
- 9.0.2 — 2020-06-12
- 9.0.1 — 2020-02-22
- 9.0.0 — 2020-02-18
- 8.0.7 — 2019-10-04
- 8.0.6 — 2019-08-26
- 8.0.5 — 2019-08-22
- 8.0.4 — 2019-08-19
- 8.0.3 — 2019-08-15
- 8.0.2 — 2019-08-13
- 8.0.1 — 2019-06-19
- 8.0.0 — 2019-05-02
- … 34 more at https://npm.io/package/@atlaskit/size-detector/versions

## README

# Size-detector

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

## Installation

```sh
yarn add @atlaskit/size-detector
```

## Usage

Detailed docs and example usage can be found [here](https://atlaskit.atlassian.com/packages/core/size-detector).

## Acknowledgements

This size detection method used by this component is inspired by Federico Zivolo's awesome [react-resize-aware][react-resize-aware-repo] project, which Atlassian has contributed a PR back to.

[react-resize-aware-repo]: https://github.com/FezVrasta/react-resize-aware

---
_Source: https://npm.io/package/@atlaskit/size-detector · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
