UserMenu order of items

Is it possible to re-arrange the order of items on the user menu? It seems odd to me that firs there's a profile link, then there's the dark/light switcher, and then any other menu items appear below that. I'd like the dark/light theme switcher to either be at the very top or the very bottom.
No description
4 Replies
Jon Mason
Jon MasonOP5mo ago
Looks like I would have to use a render hook for this...if there's an easier way, let me know
Bruno Pereira
Bruno Pereira5mo ago
To change the order you'll need to override the user-menu.blade.php. Or you disable the default profile link and theme changer and add them as custom MenuItems that way you can control the order. You can check the blade component here: https://github.com/filamentphp/filament/blob/e7c0921693b847709631ae5745cf275b7400843e/packages/panels/resources/views/components/user-menu.blade.php#L2
GitHub
filament/packages/panels/resources/views/components/user-menu.blade...
A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS. - filamentphp/filament
Jon Mason
Jon MasonOP5mo ago
Thanks for this, I’ll take a look.
Want results from more Discord servers?
Add your server