Best laravel framework open-source packages.

Filament accordion

Laravel Filament plugin that provides a new Accordion component for forms.
Updated 2 months ago

Laravel Filament Accordion

Latest Version on Packagist GitHub Tests Action Status

Filament plugin that provides a new Accordion component for forms.

Installation

You can install the package via composer:

composer require sematico/filament-accordion

Optionally, you can publish the views using

php artisan vendor:publish --tag="filament-accordion-views"

Usage

use Sematico\FilamentAccordion\Forms\Components\Fields\Accordions;

Accordions::make('article')
	->label( __( 'Article settings' ) )
	->accordions([
		Accordions\Accordion::make('my_accordion')
			->label( __( 'Accordion 1' ) )
			->description( __( 'Optional description' ) )
				->schema([
					// Form inputs here...
				]),
		Accordions\Accordion::make('my_other_accordion')
			->label( __( 'Accordion 2' ) )
			->description( __( 'Optional description' ) )
			->schema([
				// Form inputs here...
			]),
		])
->compact(),

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

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