© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
7 replies
chrislcarr

How to add a CSS class to a v3 widget?

In v2 of Filament, I have a blade file in resources/views/filament/widgets ... the very first line was
<x-filament::widget class="my-css-class-name">
<x-filament::widget class="my-css-class-name">
. I saw in the "Upgrading from v2.x" documentation that has now changed to
<x-filament-widgets::widget>
<x-filament-widgets::widget>
. I made that change but
my-css-class-name
my-css-class-name
is not being added to the generated HTML. How do I do that now?
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

Add CSS class to <html>
FilamentFFilament / ❓┊help
3y ago
Add CSS class to action form
FilamentFFilament / ❓┊help
2y ago
How to add custom css class to Specifics resource
FilamentFFilament / ❓┊help
16mo ago
how to add css class to another component while afterstateupdated?
FilamentFFilament / ❓┊help
2y ago