© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
15 replies
jack5m

How can i set max width for text column in table

Hi filament community, how can i set max width for column 'name'.
i try to add class max-w-xs, but if below description is too long will break ui.
I want when below description is too long, it will go next line.
How can i solve this case? I dont want to set limit words to below description

Here is my code
                Tables\Columns\TextColumn::make('name')
                ->description(function ($record) {
                    return 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa';
                })
                ->searchable()
                ->wrap()
                ->limit(2)
                ->extraAttributes([
                    'class' => 'max-w-xs'
                ]),
                Tables\Columns\TextColumn::make('name')
                ->description(function ($record) {
                    return 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa';
                })
                ->searchable()
                ->wrap()
                ->limit(2)
                ->extraAttributes([
                    'class' => 'max-w-xs'
                ]),
image.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

Can I set width of column?
FilamentFFilament / ❓┊help
3y ago
Table Column Width
FilamentFFilament / ❓┊help
9mo ago
How to adjust table column width
FilamentFFilament / ❓┊help
3y ago
How to increase table max width layout?
FilamentFFilament / ❓┊help
3y ago