alpinejs-focus-modal

0.0.3 • Public • Published

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.

<script src="" defer></script>

From NPM: Install the package from NPM.

import AlpineFocusModal from "alpinejs-focus-modal";

Usage

TODO

License

Copyright © 2020 Vaggelis Yfantis and contributors

Licensed under the MIT license, see LICENSE for details.

Dependencies (1)

Dev Dependencies (8)

Package Sidebar

Install

npm i alpinejs-focus-modal

Weekly Downloads

0

Version

0.0.3

License

MIT

Unpacked Size

159 kB

Total Files

7

Last publish

Collaborators

  • octoper