Skip to content

rockero-cz/filament-simple-color-picker

Repository files navigation

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.

About

Simple color picker form field for FilamentPHP admin panel.

Resources

License

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published