© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
4 replies
BuddhaNature

How to render HTML in a Table's empty state description, e.g. emptyStateDescription()

Here are variations of what I have tried. None render the HTML and instead output the escaped HTML.

public static function table(Table $table): Table
    {
        return $table->emptyStateDescription('<div>Sample</div>')
   }
public static function table(Table $table): Table
    {
        return $table->emptyStateDescription('<div>Sample</div>')
   }


public static function table(Table $table): Table
    {
        return $table->emptyStateHeading(view('empty-state-heading'))
   }
public static function table(Table $table): Table
    {
        return $table->emptyStateHeading(view('empty-state-heading'))
   }


public static function table(Table $table): Table
    {
        return $table->emptyStateHeading(Markdown::inline(view('empty-state-heading')))
   }
public static function table(Table $table): Table
    {
        return $table->emptyStateHeading(Markdown::inline(view('empty-state-heading')))
   }


Here's what I am seeing:
image.png
Solution
That’s the intended way
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

Custom Data in a table - how to set empty state?
FilamentFFilament / ❓┊help
5mo ago
New lines or HTML in emptyStateDescription
FilamentFFilament / ❓┊help
3y ago
Empty state on Dashboard Table Widget
FilamentFFilament / ❓┊help
2y ago