dev-resources.site
for different kinds of informations.
Filament: Image Color Picker component
Published at
11/20/2024
Categories
laravel
filament
filamentphp
Author
wallacemaxters
Author
14 person written this
wallacemaxters
open
Image Color Picker for Filament 3
This library contains a custom form field to pick color from a image.
Install
composer require wallacemaxters/filament-image-color-picker
Usage
Basic Input Usage example:
use WallaceMaxters\FilamentImageColorPicker\ImageColorPicker;
//
return $form->schema([
TextInput::make('image_url')->url()->live(),
ImageColorPicker::make('color')
->columnSpanFull()
->image(fn ($get) => $get('image_url')),
]);
Use ImageColorPicker as Action:
Forms\Components\ColorPicker::make('color')
->suffixAction(fn ($get) =>
Forms\Components\Actions\Action::make('color-from-image')
->action(function ($set, array $data) {
$set('color', $data['color']);
})
->icon('heroicon-o-eye-dropper')
->form([
ImageColorPicker::make('color')
->format('hsl')
->image(fn() => $get('image_url'))
])
),
Preview
Github Source
https://github.com/wallacemaxters/filament-image-color-picker/tree/master
filament Article's
30 articles in total
Multi select default selection i filament v3
read article
Filament: Image Color Picker component
currently reading
My First No-Code SaaS Took off - $8K in 40 days
read article
Add a sidebar with options in a Filament resource
read article
Filament: Modify login or logout response
read article
Filament Database Notification Sound
read article
Laravel Nova vs Filament: The Best Admin Panels
read article
Filament: Add icon to form buttons
read article
Filament Breezy: add new field to Personal Info component
read article
Filament: Delete Attachments when Deleting a Record
read article
Filament: Generate Resource from Existing DB Schema
read article
Filament Breezy: set storage disk for avatar
read article
Laravel Stats : Filament Charts.js pour faire les statistiques
read article
Filament How to redirect to list page after (create,update) using Trait
read article
How to solve Symfony\Component\Routing\Exception\RouteNotFoundException Route [filament.admin.resources.api-keys.index] not
read article
Apa itu Laravel Filament?
read article
Laravel Filament: get resource table data by authenticated id
read article
Change Default Colors in FilamentPHP
read article
How to Use Searchable in Laravel 10 Filament v3
read article
Filament: add a confirmation password field in a form
read article
TomatoPHP Filament Plugins
read article
Debug Filament Search Query
read article
Filament PHP Blade UI Components Visually Explained
read article
Filament Context Menu
read article
How to Extend a Filament Resource
read article
Linkeeper - Lesson 02 - Start playing with Filament
read article
Linkeeper - Lesson 01 - Installation
read article
Filament has SPA mode!
read article
Access parent component value from the Repeater in Filament
read article
Filament v3 - Multi-tenancy form component scoping
read article
Featured ones: