hotsed / filament-sticky-actions
A Filament plugin to make table action columns sticky when scrolling horizontally
Package info
github.com/HotsEd/filament-sticky-actions
Language:JavaScript
pkg:composer/hotsed/filament-sticky-actions
0.1
2026-02-01 02:32 UTC
Requires
- php: ^8.1
- filament/filament: ^4.0
- spatie/laravel-package-tools: ^1.15
Requires (Dev)
- orchestra/testbench: ^9.0
- phpunit/phpunit: ^10.0
README
Sticky Actions
Keep your table actions visible while scrolling horizontally. Perfect for tables with many columns.
Features
- 📌 Sticky Actions Column - Actions stay visible when scrolling horizontally
- 🎨 Theme-Aware - Automatically detects and uses your theme's colors
- 🌙 Dark Mode Support - Colors update when switching themes
- 📊 Striped Rows Support - Correctly handles alternating row colors
- 🔲 Scroll Shadow - Subtle shadow indicator when there's more content
- âš¡ Zero Configuration - Just call
->stickyActions()and it works
Compatibility
| Package Version | Filament Version |
|---|---|
| 1.x | 4.x |
Installation
composer require hotsed/filament-sticky-actions
After installing, publish the assets:
php artisan filament:assets
Usage
Enable sticky actions on any table by calling ->stickyActions():
use Filament\Tables\Table; public function table(Table $table): Table { return $table ->columns([ // your columns... ]) ->actions([ // your actions... ]) ->stickyActions(); // Enable sticky actions }
You can also conditionally enable it:
->stickyActions(condition: $shouldStick)
How It Works
- Adds a
stickyActions()macro to Filament's Table class - When enabled, adds
data-sticky-actionsattribute to the table - CSS makes the actions column sticky with
position: sticky; right: 0 - JavaScript automatically detects background colors from your theme
- Blends semi-transparent striped row colors correctly
- Shadow indicator disappears when scrolled to the end
Requirements
- PHP 8.1+
- Laravel 10+
- Filament 4.x
License
MIT License. See LICENSE for more information.