Download the PHP package awcodes/preset-color-picker without Composer
On this page you can find all versions of the php package awcodes/preset-color-picker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download awcodes/preset-color-picker
More information about awcodes/preset-color-picker
Files in awcodes/preset-color-picker
Package preset-color-picker
Short Description A color picker field for Filament Forms that uses preset color palettes.
License MIT
Homepage https://github.com/awcodes/preset-color-picker
Informations about the package preset-color-picker
Preset Color Picker
A color picker field for Filament Forms that uses preset color palettes.
Installation
You can install the package via composer:
[!IMPORTANT] If you have not set up a custom theme and are using a Panel follow the instructions in the Filament Docs first. The following applies to both the Panels Package and the standalone Forms package.
Add the plugin's views to your tailwind.config.js
file.
Rebuild your custom theme.
Usage
Simply add the field to your form using the PresetColorPicker
field and pass in an array of Filament Color objects.
Should you need to include black and white in your color palette, you can use the withWhite
and withBlack
methods. This will include black and white at the end of the color options.
You can also use the 'swap' argument to swap out the hex value used for black and white.
Hook Classes
These are the available classes for css coustmizations:
- for the main container:
pcp-preset-color-picker
- for items:
pcp-preset-color-picker-item
- for active/selected item:
pcp-preset-color-picker-item-active
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Adam Weston
- All Contributors
License
The MIT License (MIT). Please see License File for more information.