Package Exports
- @zag-js/dismissable
- @zag-js/dismissable/dist/index.js
- @zag-js/dismissable/dist/index.mjs
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@zag-js/dismissable) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@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.