A StimulusJS controller for Bulma modals.
npm install stimulus-bulma-modal 
This is a simple StimulusJS controller that gives a Bulma Modal Component the ability to close itself and watches the DOM to intelligently turn background scrolling on and off.
This assumes that StimulusJS and Bulma are already installed.
Add the stimulus-bulma-modal module:
``bash`
$ yarn add stimulus-bulma-modal
or
`bash`
$ npm install stimulus-bulma-modal
First, register the controller with StimulusJS:
`Javascript
// application.js
import { Application } from 'stimulus';
import { BulmaModal } from 'stimulus-bulma-modal';
const application = Application.start();
application.register('modal', BulmaModal);
`
Next, you need to attach the controller to a Bulma modal. Because the controller operates within the modal, you'll need to add the is-active class somewhere in the DOM outside of the modal element.
`html
Bug reports and pull requests are welcome on GitHub at
This package is available as open source under the terms of the MIT License.