Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 ♻️
- Host: GitHub
- URL: https://github.com/swup/livewire-plugin
- Owner: swup
- License: mit
- Created: 2021-06-06T22:25:37.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-07-06T18:46:14.000Z (6 months ago)
- Last Synced: 2024-10-15T00:02:09.184Z (3 months ago)
- Topics: laravel, livewire, page-transitions, plguin, swup
- Language: JavaScript
- Homepage: https://swup.js.org/plugins/livewire-plugin
- Size: 184 KB
- Stars: 5
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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()]
});
```