© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
1 reply
Diogo Pinto

Textinput suffix icon color

Hello all,

I'm wondering if there is any way to add a color to the suffix icon on my input.

Use case:

An action validates a country code, if the country code is true it affixes the valid icon:

    ->action(function (Forms\Components\TextInput $component, $state) {
        $iban = new ValidateIban($state);
        if ($iban->checkIfValid()) {
            $component->suffixIcon('heroicon-m-check');
        }
    })
    ->action(function (Forms\Components\TextInput $component, $state) {
        $iban = new ValidateIban($state);
        if ($iban->checkIfValid()) {
            $component->suffixIcon('heroicon-m-check');
        }
    })
`

I'm wondering if there is a way to add a color to the suffixIcon.

Thank you!
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

Live update a suffix icon on TextInput
FilamentFFilament / ❓┊help
2y ago
Pass Htmlable to TextInput suffix
FilamentFFilament / ❓┊help
17mo ago
Custom TextInput with suffix actions
FilamentFFilament / ❓┊help
2y ago
icon gray color
FilamentFFilament / ❓┊help
2mo ago