putyourlightson/craft-sprig

A reactive Twig component framework for Craft.

Package info

github.com/putyourlightson/craft-sprig

Documentation

Language:JavaScript

Type:craft-plugin

pkg:composer/putyourlightson/craft-sprig

Fund package maintenance!

bencroker

Statistics

Installs: 322 410

Dependents: 12

Suggesters: 0

Stars: 129

Open Issues: 0

3.7.2 2026-02-17 23:25 UTC

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

mit 08a3948dfe1f6d2f0cae5f7376a278deb41f4cff

This package is auto-updated.

Last update: 2026-05-18 13:07:30 UTC


README

πŸ‘ Stable Version
πŸ‘ Total Downloads

πŸ‘ Image

Sprig Plugin for Craft CMS

A reactive Twig component framework for Craft CMS.

Sprig is a free plugin for Craft CMS 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 such as the following while completely avoiding full page refreshes:

  • Live searching
  • Loading more elements (with a button or infinite scroll)
  • Pagination, ordering and filtering elements
  • Adding products to a cart
  • Submitting forms

πŸ‘ Demo

Documentation

Learn more and read the documentation at putyourlightson.com/plugins/sprig Β»

To see working examples and video tutorials, visit the learning resources.

License

This plugin is licensed for free under the MIT License.

Requirements

This plugin requires Craft CMS 3.1.19 or later, or 4.0.0 or later, or 5.0.0 or later.

Installation

To install the plugin, search for β€œSprig” in the Craft Plugin Store, or install manually using composer.

composer require putyourlightson/craft-sprig

Created by PutYourLightsOn.