© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
6 replies
urbycoz

Adding a "show more/less" toggle to long description in infolist

I have an infolist with a description TextEntry component that renders HTML. However some of the descriptions are quite long, so I would like to include a toggle button saying "show more" or "show less" to expand and shrink the content.

public function infolist(Infolist $infolist): Infolist
    {
        return $infolist
            ->record($this->product)
            ->schema(
                TextEntry::make('description')
                    ->html(),
            );
    }
public function infolist(Infolist $infolist): Infolist
    {
        return $infolist
            ->record($this->product)
            ->schema(
                TextEntry::make('description')
                    ->html(),
            );
    }
Solution
Maybe this helps: https://laraveldaily.com/post/filament-infolist-custom-entry-with-show-more-button
Laravel Daily
Filament Infolist: Custom Entry with "Show More" Button
Filament Infolist: Custom Entry with "Show More" Button
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

Toggle button in InfoList
FilamentFFilament / ❓┊help
3y ago
Description List - Infolist
FilamentFFilament / ❓┊help
3y ago
Show Warning in a toggle
FilamentFFilament / ❓┊help
3y ago
How to make toggle button in infolist?
FilamentFFilament / ❓┊help
17mo ago