Skip to content

Simple activity indicator for StimulusReflex (for Turbo/Turbolinks-enabled applications)

Notifications You must be signed in to change notification settings

stimulusreflex/stimulus_reflex_activity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StimulusReflex Activity Indicator

Uses the Turbo(links) progress bar to display activity while morphing.

CleanShot.2021-07-23.at.12.04.05.mp4

Installation

Install my-project with npm

$ yarn add @stimulus_reflex/activity  

In your (for example) app/javascripts/packs/application.js do:

import "@stimulus_reflex/activity"

Usage/Examples

The progress indicator is opt-in on a per-element basis. To activate it, add data-reflex-display-progress to your reflex element's dataset:

<button data-reflex="click->Filter#filter" data-reflex-display-progress />

Authors

License

MIT

About

Simple activity indicator for StimulusReflex (for Turbo/Turbolinks-enabled applications)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published