0.2.0 • Published 4 years ago

stimuli v0.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

Stimuli ⚡️

NPM version GitHub license Bundle size

Collection of useful single-responsibility Stimulus controllers.

Work in progress. Needs proper tests.

Installation

npm install stimuli

Usage

Import and register the desired controllers with your application.

import { Controller } from 'stimulus'
import { MeasureController } from 'stimuli'

const application = Application.start()
application.register('measure', MeasureController)

Controllers

Autoplay

Autoplay video or audio files. Retries with a muted version of the video if it failes on first try.

Measure

Measure the deimensions of an element and stores the value in a CSS custom property.

License

MIT