What problem does it solve?
This Skill simplifies the process of adding interactive behavior to Folio components using Stimulus, reducing the complexity of JavaScript code and improving maintainability.
Core Features & Use Cases
- Controller Registration: Register Stimulus controllers next to their components for easy management.
- Data Attributes: Use StimulusHelper to add data attributes for controllers, actions, and targets in Slim templates.
- Utility Helpers: Access built-in helpers for common Stimulus patterns like lightboxes, tooltips, and modals.
- Events: Handle global events and controller-to-controller communication efficiently.
- Use Case: When you need to add interactive behavior to a Folio component, this Skill provides the necessary tools to do so effectively.
Quick Start
To use the folio-stimulus skill, register a new Stimulus controller next to your component file and use StimulusHelper to add data attributes.