How do you define the layout for a header action form?

I have a simple section, shown below. I've tried using Grid and Section within the ->form() definition, but I get a type error that the ->form() argument must be of type Filament\Forms\Components\Component

->headerActions([
    Action::make('Edit Address')
        ->label('Edit Address')
        ->outlined(true)
        ->color('primary-blue')
        ->size(ActionSize::ExtraSmall)
        ->icon('heroicon-o-pencil')
        ->modalDescription('Update contact address.')
        ->fillForm(fn ($record): array => [
            'street_one' => $record->street_one,
            'street_two' => $record->street_two,
            'city' => $record->city,
            'state' => $record->state,
            'zip' => $record->zip,
        ])
        ->form([
            TextInput::make('street_one')
                ->label('Street One'),
            TextInput::make('street_two')
                ->label('Street Two'),
            TextInput::make('city')
                ->label('City'),
            Select::make('state')
                ->label('State')
                ->options(State::pluck('abbreviation', 'name')->toArray())
                ->searchable(),
            TextInput::make('zip')
                ->label('Zip'),
            
        ])
        ->action(function ($record, $data) {
            ray($record, $data);
        })
Solution
Yes. But there’s actually a form component called Group.
Was this page helpful?