gboquizosanchez/filament-scroll-to-top

Auto scroll to top on page change for Filament panels
6,004 1
Install
composer require gboquizosanchez/filament-scroll-to-top
Latest Version:1.0.2
PHP:^8.2
License:MIT
Last Updated:Sep 12, 2026
Links: GitHub  ·  Packagist
Maintainer: gboquizosanchez

gboquizosanchez/filament-scroll-to-top

Scroll to top on pagination change for Filament panels

Latest Stable Version Total Downloads PHP License: MIT Tests


Automatically scroll the page back to the top whenever a user navigates to a new table page in Filament 4 and 5.


Overview

When a user changes pages in a Filament table, the scroll position stays where it was — forcing them to manually scroll back up. This plugin adds a smooth scroll-to-top behaviour on every pagination change, with zero configuration.


Version compatibility

Plugin Filament PHP
1.x 4.x – 5.x ^8.2

📦 Installation

composer require gboquizosanchez/filament-scroll-to-top

Register the plugin in your panel provider (app/Providers/Filament/AdminPanelProvider.php):

use Boquizo\FilamentScrollToTop\ScrollToTopPlugin;

->plugins([
    ScrollToTopPlugin::make(),
])

🔧 Usage

Add the ScrollToTop trait to any ListRecords page or RelationManager that should scroll on pagination:

use Boquizo\FilamentScrollToTop\Traits\ScrollToTop;
use Filament\Resources\Pages\ListRecords;

final class ListGames extends ListRecords
{
    use ScrollToTop;

    // ...
}
use Boquizo\FilamentScrollToTop\Traits\ScrollToTop;
use Filament\Resources\RelationManagers\RelationManager;

final class GamesRelationManager extends RelationManager
{
    use ScrollToTop;

    // ...
}

That's it. No further configuration needed.


🧪 Testing

composer test

Contributing

Contributions are welcome!

  • 🐛 Report bugs via GitHub Issues
  • 💡 Suggest features or improvements
  • 🔧 Submit pull requests with fixes or enhancements

Credits


📄 License

This package is open-source software licensed under the MIT License.

Related Packages

tonegabes/filament-better-options

Filament form components for better radio and checkbox options.

19,755 16
nben/filament-record-nav

Next/Previous record navigation for Filament PHP

23,891 15
tomatophp/filament-browser

File & Folders & Media Browser With Code Editor

9,964 42
marcogermani87/filament-cookie-consent

Easy cookie consent integrations for Filament

17,953 19
nekofar/pest-plugin-mock-client

Pest Plugin for Mock HTTP client

22 1

Version History

Version Released PHP License
1.0.2 ^8.2 MIT
1.0.1 ^8.2 MIT
1.0.0 ^8.2 MIT