© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago
exactwebitesolutions

Using suffix/prefix with html string

Adding a suffix looses the HtmlString object so it performs sanitization removing the tooltip.
Tables\Columns\TextColumn::make('total')
    ->html()
    ->formatStateUsing(fn (string $state) => new HtmlString("<span x-tooltip.raw='Example'>{$state}</span>"))
    ->suffix('test')
Tables\Columns\TextColumn::make('total')
    ->html()
    ->formatStateUsing(fn (string $state) => new HtmlString("<span x-tooltip.raw='Example'>{$state}</span>"))
    ->suffix('test')

This is a simplified example to show the issue we're actually overwriting the suffix for custom logic adding icons.
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

Using Filament with Tailwind Prefix
FilamentFFilament / ❓┊help
2y ago
Can we add suffix/prefix to lara-zeus/quantity?
FilamentFFilament / ❓┊help
2y ago
Using suffix/prefix actions with TextEntry in an infolist doesn't work if the state is empty.
FilamentFFilament / ❓┊help
4mo ago
Custom TextInput with suffix actions
FilamentFFilament / ❓┊help
2y ago