F
Filament16mo ago
Ehsan

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
josef16mo ago
Just this one component, not the whole page? Try adding your custom styling in extraAttributes(['class' => ''])
Ehsan
EhsanOP16mo ago
josef
josef16mo 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
Want results from more Discord servers?
Add your server