© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•8mo ago•
3 replies
shuvox

How to default a navigation group to collapsed on first load?

->navigationGroups([
NavigationGroup::make()
->label('Users')
->icon('heroicon‑o-users')
->collapsible()
])

I’m building an admin panel with a "Users" navigation group, which contains Roles, Permissions, and Users submenu items.
However, whenever I first load the page, the group is always expanded by default—even if I haven’t clicked anything. I’d like the submenu to start collapsed (hidden), and only expand when the user clicks the group icon.

🙏 Would love to hear your approaches or insights here—thanks!
Screenshot_2025-06-16_at_10.23.42_PM.png
Solution
yeah, by modifying localstorage key collapsedGroups in render hook resolved the issue.
Here is my updated code in panelprovider
https://codeshare.io/5Od9Dr
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

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Setting navigation group as collapsed by default
FilamentFFilament / ❓┊help
2y ago
Navigation - groups->collapsed
FilamentFFilament / ❓┊help
3y ago
only allow one navigation group active or collapsed
FilamentFFilament / ❓┊help
2y ago
How to sort navigation items within a navigation group?
FilamentFFilament / ❓┊help
12mo ago