Skip to main content

Color Picker

The #[ColorPicker] property type will render a color picker in the field properties panel.

use Solspace\Freeform\Attributes\Property\Input\ColorPicker;
// ...

#[ColorPicker(
label: 'Background Color',
instructions: 'Select a background color for the field.',
)]
protected string $backgroundColor = '#ffffff';

Result

Page Feedback