Shout
A simple inline contextual notice for Filament Forms, basically just a fancy placeholder.
Author:
Adam Weston
Documentation
- Compatibility
- Installation
- Usage
- Custom Colors
- Icons
- Headings
- Actions
- Changelog
- Contributing
- Security Vulnerabilities
- Credits
- License
A simple inline contextual notice for Filament forms and infolist, basically just a fancy placeholder.
#Compatibility
| Package Version | Filament Version |
|---|---|
| 1.x | 2.x |
| 2.x | 3.x |
| 3.x | 4.x |
| 4.x | 5.x |
#Installation
You can install the package via composer:
composer require awcodes/shout
[!IMPORTANT] If you have not set up a custom theme and are using Filament Panels follow the instructions in the Filament Docs first.
After setting up a custom theme add the plugin's views to your theme css file or your app's css file if using the standalone packages.
@source '../../../../vendor/awcodes/shout/resources/**/*.blade.php';
#Usage
Simply include the component in any of your form or infolists schema() methods.
use Awcodes\Shout\Components\Shout;
Shout::make('so-important')
->content('This is a test')
#Custom Colors
You can use the color() method to set a custom color using Filament's Color Object.
use Awcodes\Shout\Components\Shout;
use Filament\Support\Colors\Color;
Shout::make('so-important')
->content('This is a test')
->color(Color::Lime)
Shout::make('so-important')
->content('This is a test')
->color(Color::hex('#badA55'))
#Icons
#Changing the icon
use Awcodes\Shout\Components\Shout;
Shout::make('so-important')
->content('This is a test')
->icon('heroicon-s-circle-check')
#Icon Size
use Awcodes\Shout\Components\Shout;
Shout::make('so-important')
->content('This is a test')
->iconSize('sm|md|lg|xl')
#Disabling the icon
use Awcodes\Shout\Components\Shout;
Shout::make('so-important')
->content('This is a test')
->icon(false)
#Headings
You can add a heading to your shout using the heading() method. By default , the heading will be a h2 element, but you can override this by using an HtmlString object.
use Awcodes\Shout\Components\Shout;
Shout::make('so-important')
->heading('Important Notice')
->content('This is a test')
#Actions
You can add actions to your shout using the actions() method. This accepts an array of Filament Action objects.
use Awcodes\Shout\Components\Shout;
use Filament\Forms\Components\Actions\Action;
Shout::make('so-important')
->content('This is a test')
->actions([
Action::make('action1')
->label('Action 1')
->url('https://example.com'),
Action::make('action2')
->label('Action 2')
->url('https://example.com'),
])
#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.
The author
Adam is a full-stack web developer (with a focus on Laravel) who has been coding for close to 20 years. He is a core Filament team member as well and has authored numerous plugins for Filament such as Curator, Tiptap Editor and Table Repeater, to name a few. You can learn more about Adam on his website.
From the same author
Botly
Botly is a Filament plugin to manage your site's robots.txt file directly from a Filament admin panel.
Author:
Adam Weston
Table Repeater
A modified version of the Filament Forms Repeater to display it as a table.
Author:
Adam Weston
Tiptap Editor
A Rich Text Editor plugin for Filament Forms.
Author:
Adam Weston
Quick Create
Plugin for Filament Panels that adds a dropdown menu to the header to quickly create new items.
Author:
Adam Weston
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
Custom Fields
Eliminate custom field migrations forever. Let your users create and manage form fields directly in Filament admin panels with 20+ built-in field types, validation, and zero database changes.
Relaticle