PHPackages                             gboquizosanchez/filament-scroll-to-top - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. gboquizosanchez/filament-scroll-to-top

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

gboquizosanchez/filament-scroll-to-top
======================================

Auto scroll to top on page change for Filament panels

1.0.0(2mo ago)0448↓11.1%MITPHPPHP ^8.2

Since May 16Pushed 2mo agoCompare

[ Source](https://github.com/gboquizosanchez/filament-scroll-to-top)[ Packagist](https://packagist.org/packages/gboquizosanchez/filament-scroll-to-top)[ Docs](https://github.com/gboquizosanchez)[ RSS](/packages/gboquizosanchez-filament-scroll-to-top/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (8)Versions (2)Used By (0)

[![Scroll to Top](https://raw.githubusercontent.com/twitter/twemoji/master/assets/svg/2b06.svg)](https://raw.githubusercontent.com/twitter/twemoji/master/assets/svg/2b06.svg)`gboquizosanchez/filament-scroll-to-top`
========================================

[](#gboquizosanchezfilament-scroll-to-top)

**Scroll to top on pagination change for Filament panels**

[![Latest Stable Version](https://camo.githubusercontent.com/ab6ce64bea76372197d6e102f7513a3811e2b0d49b37e529aa4d6ca4db15ecbe/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f67626f7175697a6f73616e6368657a2f66696c616d656e742d7363726f6c6c2d746f2d746f702e737667)](https://packagist.org/packages/gboquizosanchez/filament-scroll-to-top)[![Total Downloads](https://camo.githubusercontent.com/9d06169f9d11ba2a92200825f0f52a21270cf17a71280531f0fc62b3628b3b24/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f67626f7175697a6f73616e6368657a2f66696c616d656e742d7363726f6c6c2d746f2d746f702e737667)](https://packagist.org/packages/gboquizosanchez/filament-scroll-to-top)[![PHP](https://camo.githubusercontent.com/321da254d7b028e4112d043890a9effa7aba0c756e0a42a4ed1894918a452e46/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e322d3737374242343f6c6f676f3d706870266c6f676f436f6c6f723d7768697465)](https://packagist.org/packages/gboquizosanchez/filament-scroll-to-top)[![License: MIT](https://camo.githubusercontent.com/6fd529fdc57adf8eb89582bee619d571fd9037b380418c50bb57e9c91598e03b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d3232433535452e737667)](LICENSE.md)[![Tests](https://camo.githubusercontent.com/600447d23e0f73abc4988a83007993cf06dbbac7db0af553fd0a9c63d65a0b8f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f54657374732d5065737425323076342d394332374230)](https://pestphp.com/)

---

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

---

Overview
--------

[](#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
---------------------

[](#version-compatibility)

PluginFilamentPHP1.x4.x – 5.x^8.2---

📦 Installation
--------------

[](#-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
-------

[](#-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
---------

[](#-testing)

```
composer test
```

---

Contributing
------------

[](#contributing)

Contributions are welcome!

- 🐛 **Report bugs** via [GitHub Issues](https://github.com/gboquizosanchez/filament-scroll-to-top/issues/new)
- 💡 **Suggest features** or improvements
- 🔧 **Submit pull requests** with fixes or enhancements

---

Credits
-------

[](#credits)

- **Author**: [Germán Boquizo Sánchez](mailto:germanboquizosanchez@gmail.com)

---

📄 License
---------

[](#-license)

This package is open-source software licensed under the [MIT License](LICENSE.md).

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance86

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

69d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20032391?v=4)[Germán Boquizo Sánchez](/maintainers/gboquizosanchez)[@gboquizosanchez](https://github.com/gboquizosanchez)

---

Top Contributors

[![gboquizosanchez](https://avatars.githubusercontent.com/u/20032391?v=4)](https://github.com/gboquizosanchez "gboquizosanchez (1 commits)")

---

Tags

phppluginlaravelpaginationfilamentscrollux

###  Code Quality

TestsPest

Static AnalysisPHPStan, Rector

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/gboquizosanchez-filament-scroll-to-top/health.svg)

```
[![Health](https://phpackages.com/badges/gboquizosanchez-filament-scroll-to-top/health.svg)](https://phpackages.com/packages/gboquizosanchez-filament-scroll-to-top)
```

###  Alternatives

[ysfkaya/filament-phone-input

A phone input component for Laravel Filament

3161.3M26](/packages/ysfkaya-filament-phone-input)[pboivin/filament-peek

Full-screen page preview modal for Filament

253391.9k19](/packages/pboivin-filament-peek)[tapp/filament-google-autocomplete-field

Filament plugin that provides a Google Autocomplete field

30136.4k](/packages/tapp-filament-google-autocomplete-field)[eslam-reda-div/filament-copilot

A Filament plugin for AI-powered copilot features.

3510.4k](/packages/eslam-reda-div-filament-copilot)[asosick/filament-layout-manager

Allow users to create &amp; customize their own FilamentPHP pages composed of Livewire components

5822.2k3](/packages/asosick-filament-layout-manager)[awcodes/recently

Easily track and access recently viewed records in your filament panels.

4337.1k](/packages/awcodes-recently)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
