Warp Quick Look demo — look at a related record without leaving the page: a card on hover, the details on click. Try it anywhere; the data is reset every hour. warpui.com About Warp Quick Look Docs Ask a question Support
Skip to content

Building a card

With no setup, the card shows the record title and the details of the global search. quickLook() on the resource builds a richer card.

A card with no setup

Products have a resource without quickLook(). The card shows the record title and the global search details (SKU, price, supplier); the details show the resource’s infolist(), like Filament’s own View action.

Note: Try it

Put the pointer on a product, then click it.

4 results
Loading...
Product (no setup) SKU
Ballpoint pens (12)
OF-PEN
Copy paper A3
PAP-A3
Copy paper A4
PAP-A4
Envelopes C5
ENV-C5

What the card shows: image, badge, details

CustomerResource::quickLook() adds a logo (->image()), a badge for the tier (->badge()) and four “label: value” rows (->details()).

Note: Try it

Put the pointer on a customer: the card has the logo, the badge and the four rows. Compare it with the product card above.

4 results
Loading...
Customer (quickLook()) City
Acme Corp
Boston
Bluebird Foods
Denver
Cedar & Pine
Portland
Delta Logistics
Houston

What the details show: schema and buttons

The same quickLook() chooses what opens on click: ->schema() (here the phone, the city, the account manager and the recent orders) and buttons at the bottom (->actions()).

Note: Try it

Click a customer: the details show the recent orders. Click “Log a call” at the bottom: a small form opens on top of the details. “Send an email” is a plain link (mailto:) that opens your mail app.

4 results
Loading...
Customer (quickLook()) City
Acme Corp
Boston
Bluebird Foods
Denver
Cedar & Pine
Portland
Delta Logistics
Houston