© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•15mo ago•
20 replies
sohail

How to use custom icon

Hi i have this action on a table in livewire component and i am passing the icon and HTML string but i seem to render it as image
any idea on how i can using my font awesome pro icons

Livewire component
  ActionGroup::make([
  EditAction::make()
                    ->icon(new HtmlString(Blade::render('<i class="fal fa-edit"></i>')))
                    ->fillForm(fn(Organization $organization) => $organization->toArray())
                    ->form([
                        TextInput::make('name'),
                        TextInput::make('address'),
                        Textarea::make('description'),
                    ])
 ])
  ActionGroup::make([
  EditAction::make()
                    ->icon(new HtmlString(Blade::render('<i class="fal fa-edit"></i>')))
                    ->fillForm(fn(Organization $organization) => $organization->toArray())
                    ->form([
                        TextInput::make('name'),
                        TextInput::make('address'),
                        Textarea::make('description'),
                    ])
 ])
Screenshot_2024-12-03_at_19-05-14_Incrediverse.png
Solution
Did you check this section?
if you are using the package, I think you can use
->icon('fa-edit')
->icon('fa-edit')
GitHub
GitHub - owenvoke/blade-fontawesome: A package to easily make use o...
A package to easily make use of Font Awesome in your Laravel Blade views. - owenvoke/blade-fontawesome
GitHub - owenvoke/blade-fontawesome: A package to easily make use o...
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
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

custom icon
FilamentFFilament / ❓┊help
3y ago
Custom Icon Column
FilamentFFilament / ❓┊help
2y ago
Custom Icon SVG
FilamentFFilament / ❓┊help
3y ago
How can i add custom icon to resource
FilamentFFilament / ❓┊help
3y ago