© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
1 reply
Raj Siva-Rajah

Override `getColors()` from enum for toggle buttons

Hi all.

I'm using an enum in 2 places: a badge column and a toggle button.

The badges need to use the colors defined in the enum, but I don't want the toggle button using them. The toggle should just use the default styling (highlight the selected option using the primary color).

Any idea how I can do 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

State of multiple toggle buttons
FilamentFFilament / ❓┊help
2y ago
Using an enum with a toggle
FilamentFFilament / ❓┊help
2y ago
I can't select a value from the toggle buttons
FilamentFFilament / ❓┊help
6mo ago
Set state for enum
FilamentFFilament / ❓┊help
3y ago