PHP code example of rockero-cz / filament-simple-color-picker

1. Go to this page and download the library: Download rockero-cz/filament-simple-color-picker library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

rockero-cz / filament-simple-color-picker example snippets


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),