Collapse Group
A layout field that collapses space between components.
Author:
Dråfølin
Documentation
The Collapse Group field is a layout field that collapses space between components. It is useful for grouping related fields together, such as phone numbers or start and end dates.

#Installation
You can install the package via composer:
composer require drafolin/filament-collapse
Optionally, you can publish the views using
php artisan vendor:publish --tag="filament-collapse-views"
#Usage
<?php
use Drafolin\FilamentCollapse\FilamentCollapse;
public function form(Form $form)
{
return form
->schema([
FilamentCollapse::make([
// Add fields here. Ideally, these fields should be related.
// For now, it's only been tested with TextInput fields, and fields that inherit from it.
TextInput::make('first_name')
->label('First Name'), // Labels are transformed into placeholders.
TextInput::make('last_name')
->label('Last Name'),
])
->label('Collapse Group'), // This field is a regular field, so it also supports base filament properties.
]);
}
#Changelog
Please see CHANGELOG for more information on what has changed recently.
#Contributing
Everyone is welcome to contribute to this project. To do so, simply open an issue or a pull request.
#Credits
#License
The MIT License (MIT). Please see License File for more information.
The author
I'm a dragon who loves to code websites!
I've discovered filament through my internship in 2024, and I've used it now and then when I needed an administration panel for my websites.
I will not be telling much more about myself, as I'm a dragon of few words (and it is easier to manage big bios in a single place). But if you want to know more about me, you can check out my website or follow me on the fediverse!
Featured Plugins
A selection of plugins curated by the Filament team
Custom Dashboards
Let your users build and share their own dashboards with a drag-and-drop interface. Define your data sources in PHP and let them do the rest.
Filament
Data Lens
Advanced Data Visualization for Laravel Filament - a premium reporting solution enabling custom column creation, sophisticated filtering, and enterprise-grade data insights within admin panels.
Padmission
Spotlight Pro
Browse your Filament Panel with ease. Filament Spotlight Pro adds a Spotlight/Raycast like Command Palette to your Filament Panel.
Dennis Koch