modal-focus-trap

[![Downloads](https://img.shields.io/npm/dm/modal-focus-trap)](https://npm.im/modal-focus-trap) [![Version](https://img.shields.io/npm/v/modal-focus-trap)](https://npm.im/modal-focus-trap) [![License](https://img.shields.io/npm/l/modal-focus-trap)](https:

Usage no npm install needed!

<script type="module">
  import modalFocusTrap from 'https://cdn.skypack.dev/modal-focus-trap';
</script>

README

modal-focus-trap

Downloads Version License

This is a very simple and lightweight helper function that makes it easier to set up a focus trap in a modal window. This implementation is not library specific and can therefore be used with VanillaJS, React or any other library/framework.