You can change the icon, label, and any other action option on the filters reset control. Every method available for customizing action trigger buttons works here.
use Filament\Actions\Action;
use Filament\Support\Icons\Heroicon;
$table
->filtersResetAction(
fn (Action $action) => $action
->icon(Heroicon::XMark)
->label('Clear filters'),
);
Why it matters
The default label may not match your app's wording, or your users' language. Now you can change it in one place without overriding views.
Pull request
Thanks @devhoussam1998 for contributing this in PR #20476! 🙌
📚 All tips in this series: devdeia.com/filament-up-to-date

Top comments (0)