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

@solid-primitives/resize-observer

Package Overview
Dependencies
Maintainers
3
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solid-primitives/resize-observer

Primitive to observer browser resizes

  • 1.0.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
38K
increased by22.89%
Maintainers
3
Weekly downloads
 
Created
Source

solid-primitives/resize-observer

lerna size size stage

Provides a reactive resize observer wrapper.

Installation

npm install @solid-primitives/resize-observer
# or
yarn add @solid-primitives/resize-observer

How to use it

createResizeObserver

Main resize observer primitive.

const refCallback = createResizeObserver(() => console.log("resized"));

Changelog

Expand Changelog

0.0.100

Initial commit of the resize observer.

1.0.3

Release initial version for CJS and SSR support.

1.0.4

Patched HTMLElement to Element to resolve type error on buildd. Updated to Solid 1.3.

Contributors

Thanks to Moshe Udimar for this contribution!

Keywords

FAQs

Package last updated on 07 Mar 2022

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