Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@atlaskit/width-detector

Package Overview
Dependencies
Maintainers
0
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlaskit/width-detector

Wrapper for components that need to respond to width changes

  • 4.3.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
37K
increased by231.97%
Maintainers
0
Weekly downloads
 
Created
Source

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.

Keywords

FAQs

Package last updated on 20 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc