Install the package via composer:
composer require rockero-cz/filament-simple-color-picker
Filament form input allows you to predefine a color palette for users, with the possibility to set the number of colors per row.
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),
Please see CHANGELOG for more information on what has changed recently.
The MIT License (MIT). Please see License File for more information.