awcodes/filament-sticky-header
Filament Panel plugin that makes page headers sticky while scrolling. Install via Composer, import the plugin CSS into your custom theme, then register StickyHeaderPlugin in your panel provider. Includes optional Floating theme and colored header styling.
panel() method (e.g., StickyHeaderPlugin::make()).@import in theme file).wire:navigated (fixed in v2.0.6).Filament Version Alignment:
filament/filament:^5.0.Custom Theme Impact:
@layer in custom theme.Conditional Logic Needs:
floating()/colored() methods (supported since v2.0.4).Page Exclusions:
disabledOn() method (added in v4.1.0).Performance Budget:
composer require awcodes/filament-sticky-header
panel() in PanelProvider:
->plugins([
StickyHeaderPlugin::make()
->floating()
->colored()
->disabledOn([MyPage::class]),
])
resources/css/app.css:
@import 'vendor/awcodes/filament-sticky-header/resources/css/plugin.css';
| Component | Compatibility | Risk |
|---|---|---|
| Filament Version | v2.x–v5.x (plugin version aligned) | Low |
| PHP Version | 8.1+ (Laravel 9+ requirement) | Low |
| Custom Themes | Required for CSS injection | Medium (upfront) |
| Alpine.js | Default in Filament (no conflicts) | None |
| Tailwind CSS | Plugin uses Tailwind classes (no custom config needed) | None |
| Page Transitions | Reinitializes on wire:navigated (fixed in v2.0.6) |
Low |
PanelProvider, import CSS.floating(), colored(), disabledOn() as needed.panel().| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Plugin CSS conflicts with theme | Header rendering issues | Override via @layer in custom CSS. |
| JavaScript initialization fails | Sticky behavior broken | Check browser console for Alpine.js errors. |
| Filament version incompatibility | Plugin fails to load | Downgrade plugin or upgrade Filament. |
| Mobile responsiveness issues | Broken UI on small screens | Test early; override Tailwind classes if needed. |
| Page transition glitches | Header flickers on navigation | Ensure wire:navigated fix (v2.0.6+) is active. |
disabledOn(), closures) needs familiarity with Filament’s plugin system.floating(), colored(), and exclusions.How can I help you explore Laravel packages today?