TableHeaderActions

I have a simple TableHeaderActions within a Table livewire component:
protected function getTableHeaderActions(): array
    {
        return [
            Action::make('create')
                ->button()
                ->label(__('Create'))
                ->icon('heroicon-s-plus')
                ->visible(auth()->user()->can('core_create_field_type'))
                ->form($this->getFormSchema())
                ->action(function (array $data) {
                    ray($data);
                }),
        ];

$this->getFormSchema() returns an array of form's fields.

When I click the button, the loading indicator is shown, but no modal opens, did I miss smth ?
Was this page helpful?