Is there a way to customize in select::make('color) in filament to select colors and show the color
Please guys, is there a way to customize in select::make('color) in filament to select colors and show the exact color or color icon and the color code from the list of options.
5 Replies
You can use
->allowHtml()
and then return an HtmlString for your options which renders your items with color@amtech we recently published this exact example as tutorial: https://laraveldaily.com/post/filament-select-use-html-with-css-in-options
Laravel Daily
Filament Select: Use HTML with CSS in Options
Thank for this it's great, but I need it to work for selecting multiple value and show the color selected
That's outside of my knowledge/practice, I'm afraid, too custom/advanced, haven't done it myself.
alright thanks for the help