© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•13mo ago•
4 replies
Romain 'Maz' B.

Is there an easy way to center the text inside a StatsOverviewWidget?

Hi there!

I'm just looking to improve a dashboard appearance and would like to center the text of some of the StatsOverviewWidget.

Does it exists an easy way to add a class to the Stat content or so?
Solution
Once again, I found my way!
Stat::make("Stat name", 999)->extraAttributes(['class' => 'text-center'])
Stat::make("Stat name", 999)->extraAttributes(['class' => 'text-center'])
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

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

is there an easy way to translate the create button
FilamentFFilament / ❓┊help
3y ago
is there a way to change `select an option` text?
FilamentFFilament / ❓┊help
3y ago
Is there an easy way to store a section into a json field
FilamentFFilament / ❓┊help
2y ago
Is there a way to show html images inside an infolist?
FilamentFFilament / ❓┊help
2y ago