1.0.1 • Published 3 years ago

stimulus-alert v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

MIT License

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

stimulus-alert.vercel.app

Usage

<div data-controller="alert" data-alert-hidden-class-value="hidden">
    <span data-action="click->alert#close">&times;</span>
    Hello, Stimulus!
</div>

License

MIT