© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•8mo ago•
9 replies
Andy McOvens

Returning Action in renderHook

In v3 you could return an
Action::make()->render()
Action::make()->render()
in a renderHook
but with v4 it complains about the iconPosition not being set (views/components/buttons/index.blade.php:38)

I know i could make a livewire component, but for a simple action it seems overkill.
Anyone got any ideas how to render an Action in a hook?
->renderHook(PanelsRenderHook::PAGE_HEADER_ACTIONS_BEFORE, function () {
  return Action::make('test')
  ->icon('heroicon-o-plus')
  ->render();
}
->renderHook(PanelsRenderHook::PAGE_HEADER_ACTIONS_BEFORE, function () {
  return Action::make('test')
  ->icon('heroicon-o-plus')
  ->render();
}
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

How to add modal button action in renderHook ?
FilamentFFilament / ❓┊help
3y ago
Action $arguments returning empty in visible closure
FilamentFFilament / ❓┊help
17mo ago
How to return array in renderhook
FilamentFFilament / ❓┊help
3y ago
renderHook scope dont work
FilamentFFilament / ❓┊help
3y ago