rockero-cz / filament-simple-color-picker
Simple color picker form field for FilamentPHP admin panel.
Fund package maintenance!
rockero-cz
Installs: 115
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 2
Open Issues: 3
Language:Blade
Requires
- php: ^8.0
- filament/filament: ^2.0
- illuminate/contracts: ^9.0|^10.0
- spatie/laravel-package-tools: ^1.13.5
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^6.0
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^7.0
- pestphp/pest: ^1.21
- pestphp/pest-plugin-laravel: ^1.1
- pestphp/pest-plugin-livewire: ^1.0
- pestphp/pest-plugin-parallel: ^0.3
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^9.5
- spatie/laravel-ray: ^1.26
This package is auto-updated.
Last update: 2024-10-09 05:48:20 UTC
README
Filament Simple Color Picker
Installation
Install the package via composer:
composer require rockero-cz/filament-simple-color-picker
Features
Filament form input allows you to predefine a color palette for users, with the possibility to set the number of colors per row.
Usage
use Rockero\FilamentSimpleColorPicker\SimpleColorPicker; SimpleColorPicker::make('color') ->colors([ '#0ea5e9', // blue light '#0094ff', // blue middle '#0000ff', // blue dark '#FFD700', // Gold '#FFC300', // yellow '#ff9200', // orange '#36d943', // green light '#26B131', // green middle '#209b2a', // green dark '#ff00ff', // pink '#cc00ff', // purple '#ff0000', // red '#dddddd', // gray light '#9a9a9a', // gray middle '#565656', // gray dark '#8D1E4D', // wine '#581845', // dark purple '#000000', // black ]) ->colorColumns(6),
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
License
The MIT License (MIT). Please see License File for more information.