stimulus-alert

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i stimulus-alert

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

23.8 kB

Total Files

12

Last publish

Collaborators

  • pedroperafan