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

1.0.3 2023-07-28 08:19 UTC

README

Alt text

Filament Simple Color Picker

Rockero Latest Version on Packagist Total Downloads Software License

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.

Alt text

Alt text

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.