© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•15mo ago•
8 replies
wazkaz

Badge component color using hex

Hello, I am using the
Badge Filament Blade component
Badge Filament Blade component
, and I would like to change its color by passing a hex code, but it is not working.

I tried using the
TextColumn
TextColumn
badge functionality to change the color with a hex code, and it worked like this:
Color::hex($record->attributeOptions->first()->color_code);
Color::hex($record->attributeOptions->first()->color_code);

However, when I try to achieve the same with the Blade component, it doesn't work.

Can anyone help me with this?
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Badge Component
FilamentFFilament / ❓┊help
3y ago
Color column + HEX code
FilamentFFilament / ❓┊help
3y ago
badge color from color field
FilamentFFilament / ❓┊help
2y ago