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

Card lists

A wide table does not fit on a phone. With ->mobileCards(), each row becomes a card on a narrow screen. On a wide screen it stays the same table.

1Cards with roles for the columns

You say where each column goes on the card.

Try it

  1. Click “Show this in the phone” below to open “Deliveries”.
  2. Look at the card of Jason Morar.
  3. Tap anywhere on the card.

What happens

The parcel picture is on the left (mobileAvatar()), the name is the title (mobileTitle()), the address is below it (mobileSubtitle()) and the status is at the top right (mobileBadge()). The time and the number of parcels have no role, so they are small lines with their labels. The delivery number is hidden (mobileHidden()). Tapping the card opens the delivery.

The code
$table
    ->mobileCards()
    ->columns([
        ImageColumn::make('photo')->circular()->mobileAvatar(),
        TextColumn::make('recipient')->mobileTitle(),
        TextColumn::make('address')->mobileSubtitle(),
        TextColumn::make('status')->badge()->mobileBadge(),
        TextColumn::make('scheduled_at')->time('H:i'),
        TextColumn::make('parcels'),
        TextColumn::make('number')->mobileHidden(),
    ])

2Cards without roles

One line, ->mobileCards(), is enough.

Try it

  1. Click “Show this in the phone” below to open “Site visits”.

What happens

The first column (the site) is the title of each card. The other columns are lines with their labels.

The code
$table
    ->mobileCards()
    ->columns([
        TextColumn::make('site'),
        TextColumn::make('client'),
        TextColumn::make('status')->badge(),
        TextColumn::make('starts_at')->time('H:i'),
        TextColumn::make('crew'),
    ])

3For comparison: a table without cards

This is how a Filament table looks on a phone without mobileCards().

Try it

  1. Click “Show this in the phone” below to open “Customers”.
  2. Look at the right edge of the table: the columns go on past the phone. Scroll sideways over the table to see them (two fingers on a trackpad, or Shift and the wheel with a mouse).

What happens

The table keeps its columns and is wider than the phone, so you scroll sideways to read a row.

The code
// No mobileCards(): Filament's table as it is
$table->columns([...])

4The same table on a wide screen

Cards are used below 768 px (the default, ->breakpoint('md')). Wider screens get the usual table.

Try it

  1. Click “Show this in the phone” below to open “Deliveries”.
  2. Above the phone, click “Tablet (820 px)”, then “Desktop (1280 px)”.
  3. Click “Phone (390 px)” to go back.

What happens

At 820 px and 1280 px (shrunk to fit the frame) the deliveries are an ordinary table with all the columns, the delivery number included. The bar at the bottom is not there either. At 390 px they are cards again.

The code
FilamentWarpMobilePlugin::make()
    // Below 768 px (the default). Also 'sm' (640 px) or 'lg' (1024 px)
    ->breakpoint('md')

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