© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
9 replies
MajistraFila

Custom row classes

Hi everyone, i'm trying to use this code : recordClasses(fn (Model $record) => match ($record->is_confidential) {
true => 'bg-red-500',
default => null,
})
but that is not working and without errors.
thank you
Solution
If you are using the panel builder: https://filamentphp.com/docs/3.x/panels/themes#creating-a-custom-theme
if you are using the table builder only: https://filamentphp.com/docs/3.x/tables/installation#installing-tailwind-css
Installation - Table Builder - Filament
Themes - Panel Builder - Filament
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Custom row classes border colour weirdness
FilamentFFilament / ❓┊help
3y ago
Custom column classes
FilamentFFilament / ❓┊help
2y ago
Custom Row Classes - How to assign a different background color to each row (Category)
FilamentFFilament / ❓┊help
3y ago
Custom Row Accordion
FilamentFFilament / ❓┊help
9mo ago