awcodes / shout
A simple inline contextual notice for Filament forms, basically just a fancy placeholder.
Fund package maintenance!
awcodes
Installs: 139 035
Dependents: 4
Suggesters: 0
Security: 0
Stars: 50
Watchers: 4
Forks: 8
Open Issues: 0
Requires
- php: ^8.1
- filament/filament: ^3.0
- spatie/laravel-package-tools: ^1.15
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.9|^8.1
- orchestra/testbench: ^8.0|^9.0
- pestphp/pest: ^2.1
- pestphp/pest-plugin-laravel: ^2.0
- pestphp/pest-plugin-livewire: ^2.1
- spatie/laravel-ray: ^1.26
This package is auto-updated.
Last update: 2024-10-25 15:54:45 UTC
README
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.