swup / livewire-plugin

A swup plugin for integrating Laravel Livewire ♻️

Home Page:https://swup.js.org/plugins/livewire-plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Swup Livewire Plugin

A swup plugin for integrating Laravel Livewire.

Re-initialize Livewire components after each page change.

Installation

Install the plugin from npm and import it into your bundle.

npm install @swup/livewire-plugin
import SwupLivewirePlugin from '@swup/livewire-plugin';

Or include the minified production file from a CDN:

<script src="https://unpkg.com/@swup/livewire-plugin@2"></script>

Usage

To run this plugin, include an instance in the swup options.

const swup = new Swup({
  plugins: [new SwupLivewirePlugin()]
});

About

A swup plugin for integrating Laravel Livewire ♻️

https://swup.js.org/plugins/livewire-plugin

License:MIT License


Languages

Language:JavaScript 100.0%