Download the PHP package jeffersongoncalves/filament-skeleton without Composer
On this page you can find all versions of the php package jeffersongoncalves/filament-skeleton. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jeffersongoncalves/filament-skeleton
More information about jeffersongoncalves/filament-skeleton
Files in jeffersongoncalves/filament-skeleton
Package filament-skeleton
Short Description Automatic Flux-style skeleton loading states for Filament infolists, plus skeleton Blade components.
License MIT
Homepage https://github.com/jeffersongoncalves/filament-skeleton
Informations about the package filament-skeleton
Filament Skeleton
Automatic Flux-style skeleton loading states for Filament infolists, plus skeleton, skeleton.line and skeleton.group Blade components.
Register the plugin and every infolist turns into a shimmering skeleton while its Livewire component is busy (polling, $refresh, running an action), without touching your resources. No build step and no filament:assets: the plugin inlines ~3 KB of plain CSS and JS in the panel <head>.
Compatibility
| Plugin | Filament |
|---|---|
| 1.x | 3.x |
| 2.x | 4.x |
| 3.x | 5.x |
Installation
Usage
Options:
When the skeleton shows
The skeleton is shown for a Livewire request that calls a method (wire:poll, $refresh, running a mounted action, ...) on a component that contains infolist entries. Requests that only open or close an action modal (mountAction, unmountAction, ...) and requests that only sync form state are ignored, so opening a modal doesn't blank the page behind it.
Opting out
Add data-no-skeleton to an entry, or to any parent component, to keep it out of the skeleton:
Blade components
A port of flux:skeleton, usable in custom pages, widgets or as a lazy-loading placeholder:
The components rely on the CSS the plugin injects, so use them inside a panel that registers the plugin.
Content Security Policy
When a CSP nonce is set through Vite::useCspNonce(), the inlined <style> and <script> tags carry it.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
Please review our security policy on how to report security vulnerabilities.
Credits
- Jefferson Gonçalves
- All Contributors
License
The MIT License (MIT). Please see License File for more information.