© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
6 replies
Proks D

Multiple actions inline

How can I have the two actions side by side? I tried without the group but doesn't work with the error
Header actions must be an instance of Filament\Actions\Action, or Filament\Actions\ActionGroup.
Header actions must be an instance of Filament\Actions\Action, or Filament\Actions\ActionGroup.

This code display a dropdown but isn't what I want.
   protected function getHeaderActions(): array
    {

        return [
            ActionGroup::make([
                Action::make()
                    ->name('view')
                    ->icon('heroicon-o-arrow-down-tray')
                    ->url(route('exam.pdf.download', $this->record))
                    ->openUrlInNewTab(),
                DeleteAction::make(),
            ]) 
        ];
    }
   protected function getHeaderActions(): array
    {

        return [
            ActionGroup::make([
                Action::make()
                    ->name('view')
                    ->icon('heroicon-o-arrow-down-tray')
                    ->url(route('exam.pdf.download', $this->record))
                    ->openUrlInNewTab(),
                DeleteAction::make(),
            ]) 
        ];
    }

Thanks.
Solution
use Filament\Actions;
protected function getHeaderActions(): array
{
    return [
        Actions\Action::make('action1'),
        Actions\Action::make('action2'),
    ];
}
use Filament\Actions;
protected function getHeaderActions(): array
{
    return [
        Actions\Action::make('action1'),
        Actions\Action::make('action2'),
    ];
}
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

move repeater actions inline with the components
FilamentFFilament / ❓┊help
2y ago
Multiple Actions on Save
FilamentFFilament / ❓┊help
3y ago
Multiple add actions on repeater
FilamentFFilament / ❓┊help
2y ago
iterate multiple actions in action group
FilamentFFilament / ❓┊help
2y ago