Sprig is a free plugin that allows you to create reactive components from Twig templates and/​or PHP classes. 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 enables common use-cases while completely avoiding full page refreshes:

  • Live search
  • Load more elements (with a button interaction or infinite scroll)
  • Paginate, order and filter elements
  • Add products to a cart
  • Submit forms

To see working examples and video tutorials, visit the Learning Resources.

Live search demo


Package Name

To install this plugin, search for its package name on the Plugin Store and click “Install”.


  • Version 1.10.4
  • Last Update 10/22/2021
  • Active Installs 4,211
  • Compatibility Craft 3
  • License MIT
  • Categories Forms, Templating, Development

Report an issue