schmeits / filament-4-phosphor-icons
This is my package filament-4-phosphor-icons
Fund package maintenance!
schmeits
Requires
- php: ^8.2
- codeat3/blade-phosphor-icons: ^2.3
- filament/filament: ^v4.0.0-alpha6
- spatie/laravel-package-tools: ^1.15.0
Requires (Dev)
- larastan/larastan: ^2.9
- laravel/pint: ^1.0
- nunomaduro/collision: ^8.0
- orchestra/testbench: ^9.0
- pestphp/pest: ^3.2
- pestphp/pest-plugin-arch: ^3.0
- pestphp/pest-plugin-laravel: ^3.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- spatie/laravel-ray: ^1.26
README
This is a custom icon pack to be used in Filament v4. You can use it to add Phosphor icons everywhere :)
Installation
You can install the package via composer:
composer require schmeits/filament-4-phosphor-icons
Usage
Forms\Components\TextInput::make('name') ->required() ->prefixIcon(Phosphor::Smiley)
Check out the Phosphor icons on their website Phosphor Icons to find the icon you want to use.gh
Weights
The package comes with the following weights you can use:
enum PhosphorWeight: string { case Thin = 'thin'; case Light = 'light'; case Regular = 'regular'; case Bold = 'bold'; case Fill = 'fill'; case Duotone = 'duotone'; }
You can use the weights in the same way as the icons:
->prefixIcon(Phosphor::Smiley->getIconForWeight(PhosphorWeight::Duotone))
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.