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

@zag-js/dismissable

Package Overview
Dependencies
Maintainers
1
Versions
760
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zag-js/dismissable

Dismissable layer utilities for the DOM

  • 0.0.0-dev-20240611130830
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
151K
decreased by-3.89%
Maintainers
1
Weekly downloads
 
Created
Source

@zag-js/dismissable

Installation

yarn add @zag-js/dismissable
# or
npm i @zag-js/dismissable

Features

  • Provides a layering system with built-in dismiss mechanism
  • Closess when user interacts outside or focus is called programmatically outside the layer
  • Tracks its descendant and ensure focus remains within the layer even if the previously focused descendant is removed from the DOM
  • Allows for nesting multiple layers
  • Dismiss mechanism only works for the topmost layer

Contribution

Yes please! See the contributing guidelines for details.

Licence

This project is licensed under the terms of the MIT license.

Keywords

FAQs

Package last updated on 11 Jun 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