Download the PHP package wika-group/livewire-slide-over without Composer
On this page you can find all versions of the php package wika-group/livewire-slide-over. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wika-group/livewire-slide-over
More information about wika-group/livewire-slide-over
Files in wika-group/livewire-slide-over
Package livewire-slide-over
Short Description Livewire component that provides drawers (slide overs) that support multiple children while maintaining state.
License MIT
Informations about the package livewire-slide-over
Livewire slide over panel
Slide Over Panel is a Livewire component that provides slide overs that support multiple children while maintaining state. This package is fork of batnieluyo/livewire-slide-over, a livewire component that renders slide over with state management on livewire.
Upgrading from v1
After updating the package, you can use the following command to automate the upgrade process.
This command scans your application and configuration files and automatically updates deprecated namespaces to the new package structure.
The old namespace is being deprecated and has been replaced by the new WikaGroup namespace.
Please review the updated files to ensure the new namespace is applied consistently across your project.
Installation
To get started, require the package via Composer:
Livewire directive
Add the Livewire directive @livewire('slide-over-panel') directive to your master layout.
Creating a Slide Over
You can run php artisan make:livewire ShoppingCart to make the initial Livewire component. Open your component class and make sure it extends the SlideOverComponent class:
Opening a Slide over
To open a slide over you will need to dispatch an event. To open the ShoppingCart slide over for example:
TailwindCSS
The base modal is made with TailwindCSS. If you use a different CSS framework I recommend that you publish the modal template and change the markup to include the required classes for your CSS framework.
Building Tailwind CSS for production
To purge the classes used by the package, add the following lines to your purge array in tailwind.config.js:
Because some classes are dynamically build you should add some classes to the purge safelist so your tailwind.config.js should look something like this:
For TailwindCSS 3x
Configuration
You can customize the Modal via the wire-elements-modal.php config file. This includes some additional options like including CSS if you don't use TailwindCSS for your application, as well as the default modal properties.
To publish the config run the vendor:publish command:
License
Livewire Slide Over is open-sourced software licensed under the MIT license.
All versions of livewire-slide-over with dependencies
livewire/livewire Version ^3.4 | ^4.0
spatie/laravel-package-tools Version ^1.92