A simple package that provides you with a sketchpad field in Filament
You can install the package via composer:
composer require valentin-morice/filament-sketchpad
The filament-sketchpad plugin works as any other Filament Form Builder class. Make sure the column on which it is called is cast to JSON.
public static function form(Form $form): Form { return $form ->schema([ FilamentSketchpad::make('example'), ]); }
FilamentSketchpad::make('example')->height(int 400|Closure); // in px
NOTE: All standard injected utilities are available in your closure.
Thanks to http://yiom.github.io/sketchpad/ for the JS.
The MIT License (MIT). Please see License File for more information.