If you prefer to self-host the JavaScript library that Sprig requires over using a CDN, then download and place it somewhere inside your public web folder. composer require putyourlightson/craft-sprig To install the plugin, search for “Sprig” in the Craft Plugin Store, or install manually using composer. This plugin is licensed for free under the MIT License. Load more elements (with a button interaction or infinite scroll).Sprig enables common use-cases while completely avoiding full page refreshes: These components can re-render themselves on user-triggered events (clicks, changes to input fields, form submissions, etc.) using AJAX requests, without requiring you to write a single line of JavaScript. ![]() Sprig is a free plugin for Craft CMS that allows you to create reactive components from Twig templates and/or PHP classes. To see working examples and video tutorials, visit the Learning Resources.
0 Comments
Leave a Reply. |