Warp Mega Menu demo — a mega menu for Filament panels with many pages. Try anything: stars, searches and changes to the menu are undone every hour. warpui.com About Warp Mega Menu Docs Ask a question Support filamentphp.com
Skip to content

Dashboard

Same navigation.One more line.

Install it and switch on topNavigation(): every group of your panel opens as a panel with your icons and badges.

Native Filament topNavigation()
$panel    ->topNavigation();
  • ✕Each group opens as a short list
  • ✕Fine for five pages; with thirty, people hunt
With Warp Mega Menu +1 line
$panel    ->topNavigation()    ->plugin(FilamentWarpMegaMenuPlugin::make());
  • ✓Every group opens as a wide panel with your icons and badges
  • ✓Add descriptions and live numbers with ->description() and ->stat()
About 5 KB of JavaScript, compressed

Open a group in the bar at the top of this demo to try it.

Welcome to the Warp Mega Menu demo

Harbor Supply Co. is a wholesaler in Boston with nearly thirty pages in its back office. You are Morgan Lee, who runs the office. Start with 1 to 3 (a minute in all), then try the rest in any order.

  1. 1
    Open Sales

    Each group opens as a wide panel: columns with headings, a line under every page, numbers like “6 overdue” that are counted when you open it, and a card for something new.

  2. 2
    Press g, then m

    The menu opens with the search box ready. Type “bill” or “cust”, use the arrow keys, and press Enter. Pages are found by other words too.

  3. 3
    Type #1042

    In the same search box, type #1042 and press Enter: order 1042 opens. Invoice numbers work too (INV-2026-0042), and customers are found by name.

  4. 4
    Star the pages you use

    Rest the mouse on a page in a panel and click the star. Your favorites are listed first in the menu, with the pages and orders you opened last.

  5. 5
    Look at Purchasing

    Supplier → purchase order → goods receipt → bill, drawn as steps with the work waiting at each one. Inventory shows its pages as tiles.

  6. 6
    Hide groups you never use

    Open the menu and click “Choose groups” at the bottom. Untick Team: it disappears from your menu only.

  7. 7
    Rearrange the menu as an admin

    Drag pages into another order or group, rename them, hide them, and add a link. After saving, everyone sees the new menu.

    Edit the menu →
  8. 8
    Make the window narrow

    On a phone (or below 1024 pixels), the menu button opens a full-screen menu with the search, your favorites and each group to open and close.

  9. 9
    Print all pages

    One page lists every page of the panel with what it is for — for training new people.

    See all pages →
  10. 10
    Make your own menu

    Menus made in “Edit the menu” can be shown as a button in the panel bar (Resources, above) or placed on any page of the app with one line — the header of the example page outside Filament is one of them.

    Make a menu →

Build this menu

Every panel on this page is a few lines of PHP on top of your Filament navigation. “View code”, next to the heading of every page, shows it.

More to try

Twenty-six more things the menu and its editor can do.

  1. 11
    Make a group of your own

    In the editor, click “Add a group” and choose its shape: columns, columns and a card, tiles, or steps with arrows. Drag pages into it from the list under the panel, then save.

    Edit the menu →
  2. 12
    Change what the Menu button opens

    In the editor, click the “Menu” tab. Change the button’s name, the parts of its left column, the pages recommended to everyone and its card. Save, then click Menu in the bar.

    Edit the menu →
  3. 13
    Give a team its own menu

    In the editor, choose “Warehouse team” in “Menu for”. It starts from everyone’s menu: rename or hide pages, then save. “See it as the warehouse team” below shows the bar a warehouse team member sees; “Back to my menu” brings yours back.

    Edit the warehouse team’s menu → See it as the warehouse team → Back to my menu →
  4. 14
    Preview the menu as someone else

    In the editor, type “wendy” in “Preview as” and choose Wendy Park. The preview is rebuilt with her permissions, and the editor says her bar shows the warehouse team’s menu. “Preview as me” goes back.

    Edit the menu →
  5. 15
    Go back to an earlier menu

    In the editor, rename a page, save, and click “History” at the top right. Every save keeps a version with who changed it and when; “Go back to this” brings an older one back.

    Edit the menu →
  6. 16
    Publish a menu later

    In the editor, rename a page and click “Publish later” with a time such as tomorrow at 9:00. Until then the bar keeps the current menu, and the editor shows what is coming. Cancel it in “History”.

    Edit the menu →
  7. 17
    Take the menu to another app

    In the editor, “Export / import” → “Export to a file” saves everyone’s menu, each team’s menu and the menus you made as one JSON file. “Import from a file” brings it into another panel or into production.

    Edit the menu →
  8. 18
    Type names in another language

    In the editor, choose a language in “Names in”, click a group or a page and type its name. The preview shows that language. After saving, people who use the demo in that language see it in the bar (switch the language at the top).

    Type names in another language →
  9. 19
    Type a menu you made in another language

    The menu in the header of the demo’s example page outside Filament was made in the editor, with its texts typed in every language of the demo. The link opens it with “Names in” at the top set to your language (Japanese if you read in English: English is the menu’s original text). You can choose another one there. Click a link, change its name and save. Then open the example page and choose that language in the language menu at the very top: its header menu shows your change. A field left empty falls back to the original English text.

    Translate the header menu →
  10. 20
    See which pages are used

    In the editor, click “Show usage (30 days)”: each page shows how many people opened it in the last 30 days, and the pages nobody opened are listed under the panel — click one to open its settings.

    Edit the menu →
  11. 21
    Recommendations that fill themselves

    Open the menu: after the recommended pages come the pages many people opened, added by themselves under “Recommended”. Open a few pages, then open the menu again.

  12. 22
    Create from the search box

    Outside a text box, press g, then m: the menu opens with its search box. Type “order”: besides the pages, “Actions” shows “New order” — click it to open the create page. Typing “new” lists what you can create (orders, quotes…).

  13. 23
    Add other names for a page

    In the editor, click Quotes, type “estimate” in “Other names” and save. Typing “estimate” in the menu’s search box then finds Quotes.

    Edit the menu →
  14. 24
    Search again with one click

    Search for a page in the menu and open it. When you open the menu again, the empty search box shows “Recent searches”: click a word to search for it again.

  15. 25
    Put the groups in your own order

    At the bottom of the menu, click “Choose groups”, move groups with ↑ ↓ and save. The bar changes its order for you only.

  16. 26
    Add your own links

    In the menu, under “My links”, click “Add a link”, type a name and an address that starts with https:// or /, and click “Add”. To remove one, rest the mouse on it and click ×.

  17. 27
    Jump with the keyboard

    Next to Orders in the menu you see g o. Outside a text box, press g, then o, to open Orders. Give other pages keys in the editor’s “Shortcut”.

  18. 28
    Open a mega menu with keys

    Outside a text box, press g, then 1: the mega menu of the first group on the left of the bar opens. g 2 opens the second, and so on up to g 9. Then ↓ and Enter open a page without the mouse. Rest the mouse on a group button to see its keys.

  19. 29
    A small chart in a panel

    Open Sales: under the title, a small bar chart shows the value of the orders due on each day of this week, with the total. It is worked out each time the panel opens.

  20. 30
    Colour a number by rules

    In the editor, click Quotes, and under “Number colours” click “Add a colour rule”: from 1, red. Save and open Sales: the number of open quotes is red.

    Edit the menu →
  21. 31
    The tour for new people

    The three bubbles you saw the first time you opened the demo. Open the link to see them again.

    See the tour again →
  22. 32
    Menu items made from data

    “Products” in the header menu of the example page is made from the products table each time it shows. In “Edit the menu”, choose “Warp Mega Menu” in “Menu to edit”, open the “Products” group and click one of the products: on the right, its “Link to” is “Made from data”.

    Open the example page →
  23. 33
    Links for search engines

    The menu at the top of the example page also tells search engines such as Google about its links (schema.org). It does not show on screen; view the example page’s source and you will find “SiteNavigationElement”.

    Open the example page →
  24. 34
    The same menu as a footer

    At the bottom of the example page, the header’s menu is laid out again as columns of links. It is one line: <x-warp-megamenu::footer menu="site" />.

    Open the example page →
  25. 35
    Open a mega menu from an action

    In Orders, every row ends with “Sales pages”, an example of a Filament action that opens a mega menu. Click it: the Sales mega menu opens, as if you had clicked Sales in the bar. In your code it is one line on the action: openMegaMenu().

    Open Orders →
  26. 36
    Put the Menu button on the right

    Click “Move it to the right”: the Menu button moves to the right end of the bar, just before the search box. Clicking it opens the same menu. In your code: launcherPosition('end').

    Move it to the right →