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
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1236692134531174420/Screenshot_from_2024-05-05_15-51-47.png)
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1236692134770380810/Screenshot_from_2024-05-05_15-51-34.png)
That's outside of my knowledge/practice, I'm afraid, too custom/advanced, haven't done it myself.
alright thanks for the help