PHPackages                             drafolin/filament-collapse - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. drafolin/filament-collapse

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

drafolin/filament-collapse
==========================

This plugins aims to collapse the space between multiple fields, in the same way as ToggleButtons-&gt;grouped()

v1.1.3(1y ago)122.7k↓50%2[2 PRs](https://github.com/drafolin/filament-collapse/pulls)MITPHPPHP ^8.1CI passing

Since Jan 16Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/drafolin/filament-collapse)[ Packagist](https://packagist.org/packages/drafolin/filament-collapse)[ Docs](https://github.com/drafolin/filament-collapse)[ GitHub Sponsors](https://github.com/drafolin)[ RSS](/packages/drafolin-filament-collapse/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (13)Versions (8)Used By (0)

A layout field that collapses space between components.
=======================================================

[](#a-layout-field-that-collapses-space-between-components)

[![Latest Version on Packagist](https://camo.githubusercontent.com/76b97ba93c647dd4c3862fbfb895918001b375086ad99948e621ea6c1493bc13/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f647261666f6c696e2f66696c616d656e742d636f6c6c617073652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/drafolin/filament-collapse)[![Total Downloads](https://camo.githubusercontent.com/ae454a85f5ab4cb6472c8c026689f1372b27e6377a757ab3f0596f6f09651240/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f647261666f6c696e2f66696c616d656e742d636f6c6c617073652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/drafolin/filament-collapse)

Filament Collapse
=================

[](#filament-collapse)

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.

[![Collapse Group](./doc/images/collapse-group.jpg)](./doc/images/collapse-group.jpg)

Installation
------------

[](#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
-----

[](#usage)

```
