https://github.com/octoper/alpinejs-focus-modal
https://github.com/octoper/alpinejs-focus-modal
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/octoper/alpinejs-focus-modal
- Owner: octoper
- License: mit
- Created: 2020-09-29T04:29:20.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-09-30T03:20:22.000Z (over 5 years ago)
- Last Synced: 2024-10-12T07:47:13.249Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 109 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# AlpineJS Focus Modal
This AlpineJS plugin helps with focus-trap problems of modals.
When you are opening a modal the focus will be moved to the first focusable element and the focus will be trapped into the modal.
## Install
**From CDN**: Add the following script to the end of your or section.
```html
```
**From NPM**: Install the package from NPM.
```js
import AlpineFocusModal from "alpinejs-focus-modal";
```
## Usage
TODO
##License
Copyright © 2020 Vaggelis Yfantis and contributors
Licensed under the MIT license, see [LICENSE](LICENSE.md) for details.