A Phosphor icon set ready to be used as Enums in a Filament 4 application.
tonegabes
/
filament-phosphor-icons
Phosphor Icons ready to be used in Filament 4
Filament Phosphor Icons
A Phosphor icon set ready to be used as Enums in a Filament 4 application.
Installation
You can install the package via composer:
composer require tonegabes/filament-phosphor-icons
Usage
All icons are available through an enum providing convenient usage throughout your Filament app. For more information, check the Filament docs.
For all available icons check the Phosphor Icons.
use Filament\Actions\Action;
use Filament\Forms\Components\Toggle;
use ToneGabes\Filament\Icons\Enums\Phosphor;
Action::make('star')
->icon(Phosphor::StarBold);
Toggle::make('is_starred')
->onIcon(Phosphor::Star)
Weights
This package includes a enum with weights you can use:
enum Weight: string
{
case Thin = 'thin'
case Light = 'light';
case Fill = 'fill';
case Duotone = 'duotone'
…
Top comments (0)