Skip to main content
← Back to Table of Contents

Summary

Media card for hero banners, product tiles, and call-to-action blocks. Supports background images, gradients, or solid colors, with optional top/footer copy and a footer action button. Cover Card renders on the server and requires no additional JavaScript controller. Its stylesheet is prepared before the first paint when the card is initially visible. Cards inside inactive tabs or closed modals keep demand-based loading. Footer actions use Filament’s action handling; loading is scoped to the clicked action rather than every card on the page. Footer copy and actions stay at the bottom of the card, including cards without a top title. RTL is inherited from the page, or can be enabled on one card with extraAttributes(['dir' => 'rtl']). Text alignment and footer layout follow the reading direction; the background image keeps its configured position.

Basic usage

Portrait product card

Full-width cinematic banner


Configuration API

All methods accept Closure unless noted. Ratios accept positive finite numbers, width:height, width / height, auto or null. Zero, negative or malformed dimensions throw an exception. Appearance options accept CSS values, including variables and gradient functions; additional declarations, markup and resource-loading functions are rejected. Supply image URLs through backgroundImage(). If multiple cards use the same action name, give each card a distinct key():
Cover Card does not store a value in the database. Use your footer action’s form, authorization and validation to control any changes to application data.

Full width on mobile, compact on desktop

This fills the width provided by the surrounding grid or section; it does not remove the page’s padding. No JavaScript resize handler is needed.

Public helper methods


Real-world examples

Gradient feature strip

Vertical card in a grid


Playground

/admin/flex-fields/cover-card See Playground for setup.

CSS classes (reference)

Last modified on October 16, 2026