© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•17mo ago•
3 replies
Adysone

Prefix before icon in tables

Hello,

Is it possible to display a prefix before the icon of a table cell?

Tables\Columns\TextColumn::make('field_with_icon_and_prefix')
    ->prefix('(this needs to be before the icon)')
    ->icon(fn (ThirdPartyContact $record): string => 'heroicon-o-user')
Tables\Columns\TextColumn::make('field_with_icon_and_prefix')
    ->prefix('(this needs to be before the icon)')
    ->icon(fn (ThirdPartyContact $record): string => 'heroicon-o-user')


Thanks!
image.png
Solution
Maybe a custom view column?

->view('custom-column')
->view('custom-column')


<!-- resources/views/custom-column.blade.php -->
<div class="flex">
    <div>prefix</div>
    <div> @svg('heroicon-o-user', ['class' => 'h-5 w-5'])</div>
    <div>{{ $getState() }}</div>
</div>
<!-- resources/views/custom-column.blade.php -->
<div class="flex">
    <div>prefix</div>
    <div> @svg('heroicon-o-user', ['class' => 'h-5 w-5'])</div>
    <div>{{ $getState() }}</div>
</div>
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

table filter icon - add text after or before icon
FilamentFFilament / ❓┊help
16mo ago
iconColumn's icon color on tables in custom livewire pages.
FilamentFFilament / ❓┊help
3y ago
use filament icon in skill icon
FilamentFFilament / ❓┊help
3y ago
Datetimepicker in tables
FilamentFFilament / ❓┊help
2y ago