Sketchpad plugin screenshot
Dark mode ready
Multilingual support
Supports v5.x

Sketchpad

A simple package that provides you with a sketchpad field.

Tags: Forms Form Field
Supported versions:
3.x
Valentin Morice avatar Author: Valentin Morice

Documentation

Screenshot from 2024-08-24 15-37-49

A simple package that provides you with a sketchpad field in Filament

#Installation

You can install the package via composer:

composer require valentin-morice/filament-sketchpad

#Usage

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'),
            ]);
    }

#Set the height

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.

#License

The MIT License (MIT). Please see License File for more information.

The author

Valentin Morice avatar Author: Valentin Morice

I'm a self-taught web developer from France. Currently working as a vegetarian cook, and freelancing during my free time.

Plugins
2
Stars
13

From the same author