Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/swup/livewire-plugin

A swup plugin for integrating Laravel Livewire ♻️
https://github.com/swup/livewire-plugin

laravel livewire page-transitions plguin swup

Last synced: 3 months ago
JSON representation

A swup plugin for integrating Laravel Livewire ♻️

Awesome Lists containing this project

README

        

# Swup Livewire Plugin

A [swup](https://swup.js.org) plugin for integrating [Laravel Livewire](https://laravel-livewire.com/).

Re-initialize Livewire components after each page change.

## Installation

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

```bash
npm install @swup/livewire-plugin
```

```js
import SwupLivewirePlugin from '@swup/livewire-plugin';
```

Or include the minified production file from a CDN:

```html

```

## Usage

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

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