Download the PHP package anish/resizable-modal without Composer
On this page you can find all versions of the php package anish/resizable-modal. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download anish/resizable-modal
More information about anish/resizable-modal
Files in anish/resizable-modal
Package resizable-modal
Short Description Filament v4/v5 plugin for resizable action modals using native Width breakpoints
License MIT
Informations about the package resizable-modal
Resizable Modal
Filament v4/v5 plugin that adds drag-to-resize handles on action modals. Width snaps through Filament's native Width breakpoints (fi-width-* classes), so resized modals behave the same as ->modalWidth(Width::*).
Inspired by asmit/resized-column resized-column.
Requirements
- PHP 8.2+
- Filament v4 (Livewire v3) or Filament v5 (Livewire v4)
- Laravel 10+ with Filament v4, or Laravel 11+ with Filament v5
Features
- Corner resize handles on all four modal corners
- Snaps to Filament
Widthenum breakpoints (3xsthroughscreen-2xl) - Persists per-action width in
localStorage(optional) - Works on table, header, bulk, and view actions with forms
- Global registration or per-action opt-in
- Panel plugin or standalone configuration
Works with
- Record actions (row actions)
- Bulk actions
- Header actions (list & view pages)
CreateActionEditAction(with->modal())- Custom
Action::make()with schema
Skipped when
- Confirmation-only (no form)
- Slide-over modals
Width::Screen- Plugin disabled
Compatibility
| Filament | Livewire | Laravel | Status |
|---|---|---|---|
| v4.x | v3 | 10+ | Supported |
| v5.x | v4 | 11+ | Supported |
The same APIs are used on both versions: Action::configureUsing(), extraModalWindowAttributes(), hasFormWrapper(), Filament\Support\Enums\Width, and PanelsRenderHook::SCRIPTS_AFTER. No version-specific configuration is required.
Installation
Register the plugin in your panel provider:
Publish config (optional):
Configuration
Plugin methods
Standalone (without panel plugin)
Per-action opt-in
Disable global registration and attach manually:
Eligible modals
Resize is applied when all of the following are true:
- Action has a form wrapper (schema)
- Not a confirmation-only modal
- Not a slide-over
- Modal width is not
Width::Screen
Usage
- Open any eligible action modal.
- Drag any corner handle diagonally to change width.
- Double-click a corner handle to reset to the action's default width.
Troubleshooting
If handles appear but resize does nothing:
- Hard refresh the browser (Ctrl+Shift+R).
- Clear stale localStorage keys from older versions:
License
MIT. See LICENSE.txt.