stimulus-alert
v1.0.1
Published
Install my-project with npm
Downloads
1
Maintainers
Readme
Installation
Install my-project with npm
npm install stimulus-alert
or
yarn add stimulus-alert
Add the controller in your project
import { Application } from 'stimulus'
import AlertController from 'stimulus-alert'
const application = Application.start()
application.register('alert', AlertController)
Demo
Usage
<div data-controller="alert" data-alert-hidden-class-value="hidden">
<span data-action="click->alert#close">×</span>
Hello, Stimulus!
</div>