Detached Slide-Overs plugin screenshot
Dark mode ready
No multilingual support
Supports v5.x

Detached Slide-Overs by Filafly

Community

Make slide-overs float off the edge of the screen as a rounded card, for one action with ->detached() or for every slide-over in the panel, notifications included, with a configurable gap and radius, RTL and dark mode.

Tags: Panels Action
Supported versions:
5.x 4.x
Filafly avatar Author: Filafly

Package health

Automated checks of this plugin's Composer package

91 / 100
Security 83
Maintenance 100
Ecosystem 100
15 checks
  • Skipped: GitHub Actions pinned to SHA
  • Skipped: GitLab CI includes pinned to SHA
  • Passed: Open security advisories
  • Passed: Dependabot PR responsiveness — No open Dependabot PRs.
  • Skipped: Renovate MR responsiveness
  • Failed: Dependabot or Renovate configured — Updater is configured but covers none of the ecosystems in use. View details on Plumb
  • Passed: Dependency update cooldown configured
  • Passed: Provides a security policy
  • Passed: Abandoned or archived — No consulted source marks the package abandoned (packagist, github).
  • Passed: Commit and release recency — Active: last commit 0 days ago; last release 5 days ago.
  • Passed: composer.lock not committed by library — composer.lock is absent from the released dist archive.
  • Passed: Dist archive is lean
  • Passed: Current Laravel version supported — Package dependencies resolve together with current Laravel 13.0.
  • Passed: Current PHP version supported — Constraint ^8.2 supports current PHP 8.6.
  • Skipped: Current Symfony version supported
Third-party plugin. This is built by the community, not the Filament team. Filament does not review, endorse, or vet the security of plugins outside the filament/ namespace. Review the source and install at your own risk. Found malware or an unresolved security issue the author won't address? Report it .
Powered by Plumb Last scanned 4 hours ago

Documentation

Latest Version on Packagist Total Downloads

Slide-overs that float off the edge of the screen. Instead of a full-height panel stuck to the side, a slide-over opens as a rounded card with a little of the page showing around it, the same shape as Filament's centered modals.

It's the slide-over from Lucent, FilaFly's premium theme, pulled out so it works in any panel and with any theme.

A detached slide-over editing an order, floating off the right edge of a Filament panel with rounded corners

#Requirements

  • PHP 8.2+
  • Filament 4.11+ or 5.6+, the releases that added left and right slide-overs (tested with 4.13 on Laravel 12 and 5.11 and 5.12 on Laravel 13)

#Installation

You can install the package via Composer:

composer require filafly/filament-detached-slide-overs

Not sure which Laravel and PHP versions your Filament version needs? See the Filament version compatibility guide.

Publish the assets:

php artisan filament:assets

There are two ways to use it: detach one action at a time, or every slide-over in a panel.

#One action at a time

Call detached() on any action. It opens the action in a slide-over, so you don't need slideOver() as well.

use Filament\Actions\Action;

Action::make('edit')
    ->detached()
    ->schema([
        // ...
    ])

That's all it takes: no plugin to register. It works on page header actions, table actions and actions in forms and infolists, and with slideOverPosition() for slide-overs that open from the left.

If you set extraModalWindowAttributes() on the same action, pass merge: true or call it before detached(), so it doesn't replace the class detached() adds.

#Every slide-over in a panel

Register the plugin in your panel provider:

use Filafly\DetachedSlideOvers\DetachedSlideOversPlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        ->plugin(DetachedSlideOversPlugin::make());
}

Now every slide-over in that panel is detached: actions that call slideOver(), and the slide-overs Filament draws itself, such as the database notifications panel. Centered modals are left as they are.

To keep one slide-over on the edge of the screen, call detached(false) on its action:

Action::make('history')
    ->slideOver()
    ->detached(false)

#everywhere(bool $condition = true)

Pass false to register the plugin for its gap() and radius() settings only, and detach just the actions that call detached().

#Spacing and corners

#gap(?string $gap)

The space between the slide-over and the edges of the screen, as a CSS length. Defaults to 0.5rem on phones and 1rem from the sm breakpoint (40rem) up. A gap you set is used at every size.

#radius(?string $radius)

The corner radius, as a CSS length. Defaults to 0.75rem, the radius of Filament's centered modals.

DetachedSlideOversPlugin::make()
    ->gap('1.5rem')
    ->radius('1rem')

Both are CSS custom properties, so a theme can set them instead:

Property Default Purpose
--fi-detached-slide-over-gap 0.5rem, 1rem from sm Space to the screen edges
--fi-detached-slide-over-radius 0.75rem Corner radius
:root {
    --fi-detached-slide-over-gap: 1.25rem;
}

#How it looks

  • The slide-over keeps its width (modalWidth()), header, footer and sticky header and footer. Its corners clip whatever scrolls inside it.
  • It slides all the way in from off screen and back out, past the gap, in both left-to-right and right-to-left layouts.
  • On phones it fills the screen apart from the gap, so the page stays visible at the edges.
  • It follows light and dark mode, since it only changes the slide-over's position and shape, not its colors.

#Testing

composer test

#From FilaFly

This slide-over comes from Lucent, a premium Filament theme with a clean, minimal look for the whole panel: sidebar, tables, forms, widgets and notifications. See Lucent.

#Credits

#License

The MIT License (MIT). Please see License for more information.