© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
7 replies
Keika

Description text is same size as TextColumn

Hi,

Im under the impression that a description text should be smaller than the text of the TextColumn component. Am I right? Because in my app it renders at the same size: text-sm. Am I doing something wrong?

TextColumn::make('publish_at')
    ->since()
    ->description(function(Article $article): string {
        if (!$article->publish_at) {
            return '';
        }
        
        if ($article->publish_at->isFuture()) {
            return 'Publish on ' . $article->publish_at->format('d M Y - H:m');
        }
        
        if ($article->publish_at->isPast()) {
            return 'Published on ' . $article->publish_at->format('d M Y - H:m');
        }
        
        return '';
    })
TextColumn::make('publish_at')
    ->since()
    ->description(function(Article $article): string {
        if (!$article->publish_at) {
            return '';
        }
        
        if ($article->publish_at->isFuture()) {
            return 'Publish on ' . $article->publish_at->format('d M Y - H:m');
        }
        
        if ($article->publish_at->isPast()) {
            return 'Published on ' . $article->publish_at->format('d M Y - H:m');
        }
        
        return '';
    })
Screenshot_2024-01-03_at_17.59.50.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

Textcolumn description text size
FilamentFFilament / ❓┊help
12mo ago
Custom value of textcolumn description
FilamentFFilament / ❓┊help
3y ago
TextColumn text clickable.
FilamentFFilament / ❓┊help
15mo ago
HTML with colour in TextColumn description
FilamentFFilament / ❓┊help
12mo ago