Disabling dark mode for form component only

I have created a custom form component and embedded the livewire component on a page. The dark mode is enabled by default in filament config, but I want to disable it for this particular livewire form component. How to achieve that
3 Replies
josef
josef2y ago
Just this one component, not the whole page? Try adding your custom styling in extraAttributes(['class' => ''])
Ehsan
EhsanOP2y ago
josef
josef2y ago
For the whole page, you can just add a javascript snippet that disables dark mode on that page for a single component I'd go with css styling for just that component

Did you find this page helpful?