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
Just this one component, not the whole page? Try adding your custom styling in
extraAttributes(['class' => ''])
I am following this example https://filamentphp.com/docs/3.x/forms/adding-a-form-to-a-livewire-component
It can be either for the same form component or the whole page.
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