sematico / filament-accordion
Laravel Filament plugin that provides a new Accordion component for forms.
This package's canonical repository appears to be gone and the package has been frozen as a result.
0.2.0
2023-04-02 20:30 UTC
Requires
- php: ^8.1
- filament/filament: ^2.17
- illuminate/contracts: ^10.0
- spatie/laravel-package-tools: ^1.14.0
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.9
- orchestra/testbench: ^8.0
- pestphp/pest: ^2.0
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
This package is auto-updated.
Last update: 2024-05-09 05:52:22 UTC
README
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.