hotsed/filament-sticky-actions

A Filament plugin to make table action columns sticky when scrolling horizontally

Maintainers

Package info

github.com/HotsEd/filament-sticky-actions

Homepage

Language:JavaScript

pkg:composer/hotsed/filament-sticky-actions

Statistics

Installs: 58

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

0.1 2026-02-01 02:32 UTC

This package is auto-updated.

Last update: 2026-03-29 03:36:03 UTC


README

filament-sticky-actions-art

FILAMENT 4.x Packagist Downloads

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
Table of Contents

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

  1. Adds a stickyActions() macro to Filament's Table class
  2. When enabled, adds data-sticky-actions attribute to the table
  3. CSS makes the actions column sticky with position: sticky; right: 0
  4. JavaScript automatically detects background colors from your theme
  5. Blends semi-transparent striped row colors correctly
  6. 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.