stimuli

0.2.0 • Public • Published

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

Dependencies (0)

    Dev Dependencies (14)

    Package Sidebar

    Install

    npm i stimuli

    Weekly Downloads

    4

    Version

    0.2.0

    License

    MIT

    Unpacked Size

    18.3 kB

    Total Files

    8

    Last publish

    Collaborators

    • daun