@zag-js/dismissable
TypeScript icon, indicating that this package has built-in type declarations

0.51.2 • Public • Published

@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.

Package Sidebar

Install

npm i @zag-js/dismissable

Weekly Downloads

57,901

Version

0.51.2

License

MIT

Unpacked Size

59.8 kB

Total Files

14

Last publish

Collaborators

  • segunadebayo