Skip to main content

Shout

41
v2.0.3

A simple inline contextual notice for Filament forms, basically just a fancy placeholder.

Shout screenshot

Shout

Latest Version on Packagist Total Downloads

shout-og

A simple inline contextual notice for Filament forms, basically just a fancy placeholder.

Installation

You can install the package via composer:

composer require awcodes/shout

Usage in Forms

Simply include the component in any of your form's schema() methods.

use Awcodes\Shout\Components\Shout;
 
Shout::make('so-important')
->content('This is a test')

Usage in Infolists

Simply include the component in any of your Infolist's schema() methods.

use Awcodes\Shout\Components\ShoutEntry;
 
ShoutEntry::make('so-important')
->content('This is a test')
->type('info|success|warning|danger')

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)

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.