Warp Mobile demo — a Filament panel that feels like a phone app. Try it in the phone on the right; the data is reset every hour. warpui.com About Warp Mobile Docs Ask a question Support
Skip to content

Bottom tab bar

A bar of tabs at the bottom of the screen, like a phone app. It is made from your panel’s navigation, or from the tabs you list.

1Tabs at the bottom

->tabs([...]) lists the tabs. Without it, the first four items of the navigation are used.

Try it

  1. In the phone, tap “Site visits” in the bar at the bottom.
  2. Then tap “Clock in”.

What happens

Each page opens, and its tab is shown in blue as the current tab. The bar stays at the bottom of every page.

The code
FilamentWarpMobilePlugin::make()
    ->tabs([
        MobileTab::make('home')->page(Home::class),
        MobileTab::make('deliveries')->resource(DeliveryResource::class),
        MobileTab::make('sites')->resource(SiteVisitResource::class),
        MobileTab::make('clock')->page(ClockIn::class),
    ])

2A number on a tab

A tab can show a number, like the badges in the navigation.

Try it

  1. Look at the number on the “Deliveries” tab. It counts the deliveries that are not delivered yet.
  2. Open “Deliveries”. Tap ⋮ on the card of Jason Morar, then “Mark as delivered”, then “Confirm”.
  3. Tap the “Home” tab.

What happens

The number on the “Deliveries” tab is one less. The bar counts again each time a page opens.

The code
MobileTab::make('deliveries')
    ->resource(DeliveryResource::class)
    ->badge(fn (): int => Delivery::leftToday(), color: 'warning'),

3The “More” tab

Four tabs fit in the bar. The fifth one and the rest go into “More”.

Try it

  1. Tap “More” at the right end of the bar.
  2. Tap “Customers” in the list that opens.

What happens

A small list opens above the bar with the tab that did not fit (“Customers”) and “All pages”, which opens the panel’s whole menu. Tapping “Customers” opens the list of customers. While it is open, the tab at the right end of the bar is marked as the current tab, because the page is inside it.

The code
->tabs([
    // ...the four tabs above, then:
    MobileTab::make('customers')->resource(CustomerResource::class),
])
// ->moreTab(false) removes “More”

4Hide while scrolling down

->hideOnScroll() gives the page more room while you read down a list.

Try it

  1. Open “Deliveries”.
  2. Put the mouse over the phone and scroll down the list with the mouse wheel.
  3. Scroll up a little.

What happens

The bar slides away while you scroll down and comes back as soon as you scroll up.

The code
FilamentWarpMobilePlugin::make()
    ->hideOnScroll()

Click to tap. To swipe or pull, press the mouse button and drag — the mouse works like a finger here.

You are on a phone

The phone frame is for computers. On your phone, open the app itself and follow the steps with your finger.

Open the app