Conditionally Add CSS Classes in Your Stimulus Controllers
This article was originally published at Rails Designer  When you need to create a bit more advanced...
Tags: javascript, rails, hotwire, stimulus