© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
19 replies
ruddy

Adding an icon to the View option in a RelationManager tab

I'm using the hasCombinedRelationManagerTabsWithContent() method to add tabs to my resource ViewRecord, but I can't manage to add an icon to the View tab :(

For the relation icons I did using the icon property.

public static function getRelations(): array
    {
        return [
            //
            RelationGroup::make('Consultas', [
                RelationManagers\ConsultasRelationManager::class,
            ])->icon('heroicon-o-rectangle-stack'),
            RelationGroup::make('Orcamentos', [
                RelationManagers\OrcamentosRelationManager::class,
            ])->icon('heroicon-o-currency-dollar'),
        ];
    }
public static function getRelations(): array
    {
        return [
            //
            RelationGroup::make('Consultas', [
                RelationManagers\ConsultasRelationManager::class,
            ])->icon('heroicon-o-rectangle-stack'),
            RelationGroup::make('Orcamentos', [
                RelationManagers\OrcamentosRelationManager::class,
            ])->icon('heroicon-o-currency-dollar'),
        ];
    }
Screenshot_2024-03-30_at_20.29.34.png
Screenshot_2024-03-30_at_20.30.34.png
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

Add Icon in RelationManager Tab for Edit
FilamentFFilament / ❓┊help
3y ago
Adding tab to View page ?
FilamentFFilament / ❓┊help
3y ago
RelationManager in view
FilamentFFilament / ❓┊help
2y ago
Conditionally Show RelationManager in a View
FilamentFFilament / ❓┊help
3y ago