© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•4w ago•
20 replies
trovster

Custom SVG Icon Stroke Colour

✅ SolvedTable builderPanels4️⃣v4
I am using the Blade Icons package, and have custom icons. I need the ability to set the stroke colour for the icon. Using
->color()
->color()
does not work. In v3 I was able to fix this by using
->extraAttributes()
->extraAttributes()
but I can't get this working for v4. This is a problem in the
IconColumn
IconColumn
and
IconEntry
IconEntry
components.

Below is an example of what I want to do.

->icon('custom-icon')
->extraAttributes([
    'style' => 'stroke: rgb(var(--gray-800))',
]);
->icon('custom-icon')
->extraAttributes([
    'style' => 'stroke: rgb(var(--gray-800))',
]);


How can I solve this?
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

Custom Icon SVG
FilamentFFilament / ❓┊help
3y ago
custom icon
FilamentFFilament / ❓┊help
3y ago
How to change icon colour without affecting text colour?
FilamentFFilament / ❓┊help
3y ago
Which is the best option to switch icon color for custom svg icon
FilamentFFilament / ❓┊help
7mo ago