© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
5 replies
ejoi8

Toggle button in InfoList

How can I add toggle component to show or hide null value in InfoList?

I have a lot of data row and it would be better if there is a toggle button that allow users to hide or show empty row.

Currently here is my code that only hide null value.

...
TextEntry::make('name')->hidden(fn ($state) => is_array($state)),
TextEntry::make('email')->hidden(fn ($state) => is_array($state)),
TextEntry::make('phone')->hidden(fn ($state) => is_array($state)),
...
...
TextEntry::make('name')->hidden(fn ($state) => is_array($state)),
TextEntry::make('email')->hidden(fn ($state) => is_array($state)),
TextEntry::make('phone')->hidden(fn ($state) => is_array($state)),
...


How can I add toggle button to show/hide back the row.
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

How to make toggle button in infolist?
FilamentFFilament / ❓┊help
17mo ago
toggle button
FilamentFFilament / ❓┊help
3y ago
Align Toggle Button
FilamentFFilament / ❓┊help
3y ago
Column selector toggle button
FilamentFFilament / ❓┊help
3y ago